9
3

lualib.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. ** $Id: lualib.h,v 1.36.1.1 2007/12/27 13:02:25 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. /* Key to file-handle type */
  10. #define LUA_FILEHANDLE "FILE*"
  11. #define LUA_COLIBNAME "coroutine"
  12. LUALIB_API int (luaopen_base) (lua_State *L);
  13. #define LUA_TABLIBNAME "table"
  14. LUALIB_API int (luaopen_table) (lua_State *L);
  15. #define LUA_IOLIBNAME "io"
  16. LUALIB_API int (luaopen_io) (lua_State *L);
  17. #define LUA_OSLIBNAME "os"
  18. LUALIB_API int (luaopen_os) (lua_State *L);
  19. #define LUA_STRLIBNAME "string"
  20. LUALIB_API int (luaopen_string) (lua_State *L);
  21. #define LUA_MATHLIBNAME "math"
  22. LUALIB_API int (luaopen_math) (lua_State *L);
  23. #define LUA_DBLIBNAME "debug"
  24. LUALIB_API int (luaopen_debug) (lua_State *L);
  25. #define LUA_LOADLIBNAME "package"
  26. LUALIB_API int (luaopen_package) (lua_State *L);
  27. /* open all previous libraries */
  28. LUALIB_API void (luaL_openlibs) (lua_State *L);
  29. #ifndef lua_assert
  30. #define lua_assert(x) ((void)0)
  31. #endif
  32. #endif