lualib.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. ** $Id: lualib.h,v 1.43.1.1 2013/04/12 18:48:47 roberto Exp $
  3. ** Lua standard libraries
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lualib_h
  7. #define lualib_h
  8. #include "lua.h"
  9. LUAMOD_API int (luaopen_base) (lua_State *L);
  10. #define LUA_COLIBNAME "coroutine"
  11. LUAMOD_API int (luaopen_coroutine) (lua_State *L);
  12. #define LUA_TABLIBNAME "table"
  13. LUAMOD_API int (luaopen_table) (lua_State *L);
  14. #define LUA_IOLIBNAME "io"
  15. LUAMOD_API int (luaopen_io) (lua_State *L);
  16. #define LUA_OSLIBNAME "os"
  17. LUAMOD_API int (luaopen_os) (lua_State *L);
  18. #define LUA_STRLIBNAME "string"
  19. LUAMOD_API int (luaopen_string) (lua_State *L);
  20. #define LUA_BITLIBNAME "bit32"
  21. LUAMOD_API int (luaopen_bit32) (lua_State *L);
  22. #define LUA_MATHLIBNAME "math"
  23. LUAMOD_API int (luaopen_math) (lua_State *L);
  24. #define LUA_DBLIBNAME "debug"
  25. LUAMOD_API int (luaopen_debug) (lua_State *L);
  26. #define LUA_LOADLIBNAME "package"
  27. LUAMOD_API int (luaopen_package) (lua_State *L);
  28. /* open all previous libraries */
  29. LUALIB_API void (luaL_openlibs) (lua_State *L);
  30. #if !defined(lua_assert)
  31. #define lua_assert(x) ((void)0)
  32. #endif
  33. #endif