lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ok, I can check for 0, but how can I generate error to Lua?
I'd like the script to end but the interpreter to continue working.

Try something like this: luaG_runerror(L, "division by zero"); (Or you can have a look at luaG_typeerror [in ldebug.c] if you want more information in the error message.)

Thank you very much, it worked like a charm. Regards, Todor