lualib.h 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. ** $Id: lualib.h,v 1.31 2004/07/09 14:29:29 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. 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. LUALIB_API int luaopen_loadlib (lua_State *L);
  26. /* open all previous libraries */
  27. LUALIB_API int luaopen_stdlibs (lua_State *L);
  28. #endif