1 /* $NetBSD: lualib.h,v 1.8 2023/04/16 20:46:17 nikita Exp $ */ 2 3 /* 4 ** Id: lualib.h 5 ** Lua standard libraries 6 ** See Copyright Notice in lua.h 7 */ 8 9 10 #ifndef lualib_h 11 #define lualib_h 12 13 #include "lua.h" 14 15 16 /* version suffix for environment variable names */ 17 #define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR 18 19 20 LUAMOD_API int (luaopen_base) (lua_State *L); 21 22 #define LUA_COLIBNAME "coroutine" 23 LUAMOD_API int (luaopen_coroutine) (lua_State *L); 24 25 #define LUA_TABLIBNAME "table" 26 LUAMOD_API int (luaopen_table) (lua_State *L); 27 28 #define LUA_IOLIBNAME "io" 29 LUAMOD_API int (luaopen_io) (lua_State *L); 30 31 #define LUA_OSLIBNAME "os" 32 LUAMOD_API int (luaopen_os) (lua_State *L); 33 34 #define LUA_STRLIBNAME "string" 35 LUAMOD_API int (luaopen_string) (lua_State *L); 36 37 #define LUA_UTF8LIBNAME "utf8" 38 LUAMOD_API int (luaopen_utf8) (lua_State *L); 39 40 #define LUA_MATHLIBNAME "math" 41 LUAMOD_API int (luaopen_math) (lua_State *L); 42 43 #define LUA_DBLIBNAME "debug" 44 LUAMOD_API int (luaopen_debug) (lua_State *L); 45 46 #define LUA_LOADLIBNAME "package" 47 LUAMOD_API int (luaopen_package) (lua_State *L); 48 49 50 /* open all previous libraries */ 51 LUALIB_API void (luaL_openlibs) (lua_State *L); 52 53 54 #endif 55