lua-users home
lua-l archive

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

I am running the following C snippet and it works fine on Darwin but on Linux the else is called. I have run "lua5.3 here/boot.lua" and it runs just fine. But calling it from C fails. How can I find out what the problem was? Is there a "last_error" I could check?

  if (luaL_dofile(L, "here/boot.lua") == LUA_OK) {
    lua_pop(L, lua_gettop(L));
  } else {
    puts("Failed to run the script!");