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:
Glenn Maynard
2005-02-15 02:15:26 +00:00
parent 004d774889
commit 0a0ad8714c
4 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -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();