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

View File

@@ -154,7 +154,7 @@ public:
std::string traceback(const std::string& errorMessage = "", int level = 0);
/// Searches for the source of the current running function
std::string currentSourcePath();
std::string getCurrentSourcePath(int level = 0);
/// @brief Calls a function
/// The function and arguments must be on top of the stack in order,