allow LuaManager::RunExpression to return a function
show the filename when a full script has an error use LuaManager::RunExpression in LuaExpression
This commit is contained in:
@@ -114,7 +114,7 @@ void LuaExpression::SetFromExpression( const CString &sExpression )
|
||||
|
||||
void LuaExpression::Register()
|
||||
{
|
||||
LUA->RunScript( "return " + m_sExpression, 1 );
|
||||
LUA->RunExpression( m_sExpression );
|
||||
|
||||
/* Store the result. */
|
||||
this->SetFromStack();
|
||||
|
||||
Reference in New Issue
Block a user