[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unprotected error in call to Lua API (13)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 8 Oct 2015 09:12:28 +0200
2015-10-08 0:36 GMT+02:00 Elie Michel <elie.michel@exppad.com>:
> I have at the beginning something like this:
>
> if (luaL_loadfile(L, "test.lua") || lua_pcall(L, 0, 0, 0)) {
> cout << "Error: " << lua_tostring(L, -1) << endl;
> }
> ...
> if (lua_pcall(L, 1, 0, 0)) {
> cout << "Error: " << lua_tostring(L, -1) << endl;
> }
The error code for luaL_loadfile can only be 2,4 or 6 and for lua_pcall
2,4 or 6 so 13 does not come from here.
Find other places in your code with "Error:"
> Note that I use Torch.
Your Batteries may be flat.