lua-users home
lua-l archive

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


Hi!

I'm working on an application that is written in C++, with exceptions disabled, and compiled on Windows x86. LuaJIT is linked statically with the application.

I see that it says in the LuaJIT docs that "Lua errors cannot be caught on the C++ side". Does this mean that there is no way to detect an error in a Lua script, report it, and then continue execution afterwards, when using LuaJIT on this platform?

Also, I get a crash when doing this a second time:

    lua_State * L = lua_open();
    luaL_openlibs(L);

Is this an incorrect way of creating 2 completely separate Lua states when using LuaJIT 2.0.0 beta 6? As far as I can tell, it works fine on vanilla Lua 5.1.4.

Cheers,
Christian Tellefsen