14#define FILE_METATABLE "file"
19typedef struct LuaFile_s {
Header file with generic functions and naev-specifics.
LuaFile_t * lua_tofile(lua_State *L, int ind)
Lua bindings to interact with files.
int lua_isfile(lua_State *L, int ind)
Checks to see if ind is a file.
LuaFile_t * luaL_checkfile(lua_State *L, int ind)
Gets file at index or raises error if there is no file at index.
LuaFile_t * lua_pushfile(lua_State *L, LuaFile_t file)
Pushes a file on the stack.
int nlua_loadFile(nlua_env env)
Loads the file library.