lua-users home
lua-l archive

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


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.