lualib.h 876 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. ** $Id: lualib.h,v 1.30 2004/05/28 18:35:05 roberto Exp roberto $
  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. #define LUA_OSLIBNAME "os"
  17. LUALIB_API int luaopen_io (lua_State *L);
  18. #define LUA_STRLIBNAME "string"
  19. LUALIB_API int luaopen_string (lua_State *L);
  20. #define LUA_MATHLIBNAME "math"
  21. LUALIB_API int luaopen_math (lua_State *L);
  22. #define LUA_DBLIBNAME "debug"
  23. LUALIB_API int luaopen_debug (lua_State *L);
  24. LUALIB_API int luaopen_loadlib (lua_State *L);
  25. /* open all previous libraries */
  26. LUALIB_API int luaopen_stdlibs (lua_State *L);
  27. #endif