I've got a project that I'm using LUA scripting with ( http://www.lua.org/ ) and I know there are several people here familiar with it...
My problem is that the people using it are going to mess up and type something like
x = sin(t)
instead of
x = math.sin(t)
When the above error is entered, it gives no error when executing "lua_dostring (L, luacode)" - but crashes my whole program when the LUA code is run.
Is there anything I'm missing with respect to running a check on the code? Or catching the error when it executes?
Thanks.
My problem is that the people using it are going to mess up and type something like
x = sin(t)
instead of
x = math.sin(t)
When the above error is entered, it gives no error when executing "lua_dostring (L, luacode)" - but crashes my whole program when the LUA code is run.
Is there anything I'm missing with respect to running a check on the code? Or catching the error when it executes?
Thanks.