more changes to work on ARM

This commit is contained in:
Eduardo Bart
2011-12-30 02:50:19 -02:00
parent a394033872
commit e95973174c
12 changed files with 33 additions and 23 deletions

View File

@@ -352,14 +352,13 @@ std::string LuaInterface::traceback(const std::string& errorMessage, int level)
return popString();
}
std::string LuaInterface::currentSourcePath()
std::string LuaInterface::getCurrentSourcePath(int level)
{
std::string path;
if(!L)
return path;
// check all stack functions for script source path
int level = 0;
while(true) {
getStackFunction(level); // pushes stack function