|
| static int | nlua_package_loader_lua (lua_State *L) |
| | load( string module ) – searcher function to replace package.loaders[2] (Lua 5.1), i.e., for Lua modules. More...
|
| |
| static int | nlua_package_loader_c (lua_State *L) |
| | load( string module ) – searcher function to replace package.loaders[3] (Lua 5.1), i.e., for C modules. More...
|
| |
| static int | nlua_package_loader_croot (lua_State *L) |
| | load( string module ) – searcher function to replace package.loaders[4] (Lua 5.1), i.e., for C packages. More...
|
| |
| static int | nlua_require (lua_State *L) |
| | include( string module ) More...
|
| |
| static lua_State * | nlua_newState (void) |
| | Wrapper around luaL_newstate. More...
|
| |
| static int | nlua_loadBasic (lua_State *L) |
| | Loads specially modified basic stuff. More...
|
| |
| static int | luaB_loadstring (lua_State *L) |
| | Replacement for the internal Lua loadstring(). More...
|
| |
| static int | nlua_gettext (lua_State *L) |
| | gettext support. More...
|
| |
| static int | nlua_ngettext (lua_State *L) |
| | gettext support for singular and plurals. More...
|
| |
| static int | nlua_pgettext (lua_State *L) |
| | gettext support with context. More...
|
| |
| static int | nlua_gettext_noop (lua_State *L) |
| | gettext support (noop). Does not actually do anything, but gets detected by gettext. More...
|
| |
| static int | nlua_log2 (lua_State *L) |
| | Implements the Lua function math.log2 (base-2 logarithm). More...
|
| |
| static int | nlua_os_getenv (lua_State *L) |
| | Implements the Lua function os.getenv. In the sandbox we only make a fake $HOME visible. More...
|
| |
| static int | nlua_panic (lua_State *L) |
| | Handles what to do when Lua panics. More...
|
| |
| void | lua_init (void) |
| |
| void | lua_exit (void) |
| |
| int | nlua_dobufenv (nlua_env env, const char *buff, size_t sz, const char *name) |
| |
| int | nlua_dofileenv (nlua_env env, const char *filename) |
| |
| nlua_env | nlua_newEnv (void) |
| |
| void | nlua_freeEnv (nlua_env env) |
| |
| void | nlua_pushenv (lua_State *L, nlua_env env) |
| |
| void | nlua_getenv (lua_State *L, nlua_env env, const char *name) |
| |
| void | nlua_setenv (lua_State *L, nlua_env env, const char *name) |
| |
| void | nlua_register (nlua_env env, const char *libname, const luaL_Reg *l, int metatable) |
| |
| int | nlua_loadStandard (nlua_env env) |
| | Loads the standard Naev Lua API. More...
|
| |
| int | nlua_errTrace (lua_State *L) |
| | Gets a trace from Lua. More...
|
| |
| int | nlua_pcall (nlua_env env, int nargs, int nresults) |
| |
| int | nlua_refenv (nlua_env env, const char *name) |
| | Gets the reference of a global in a lua environment. More...
|
| |
| int | nlua_refenvtype (nlua_env env, const char *name, int type) |
| | Gets the reference of a global in a lua environment if it matches a type. More...
|
| |
| int | nlua_reffield (int objref, const char *name) |
| | Gets the reference to the specified field from an object reference. More...
|
| |
| int | nlua_ref (lua_State *L, int idx) |
| | Creates a new reference to a Lua structure at a position. More...
|
| |
| void | nlua_unref (lua_State *L, int idx) |
| | Removes a reference set with nlua_ref. More...
|
| |
| void | nlua_resize (void) |
| | Propagates a resize event to all the environments forcibly. More...
|
| |
Handles creating and setting up basic Lua environments.
Definition in file nlua.c.