lualib.h 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. ** $Id: lualib.h,v 1.29 2004/03/24 15:46:49 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. #ifndef LUALIB_API
  10. #define LUALIB_API LUA_API
  11. #endif
  12. /* Key to file-handle type */
  13. #define LUA_FILEHANDLE "FILE*"
  14. #define LUA_COLIBNAME "coroutine"
  15. LUALIB_API int luaopen_base (lua_State *L);
  16. #define LUA_TABLIBNAME "table"
  17. LUALIB_API int luaopen_table (lua_State *L);
  18. #define LUA_IOLIBNAME "io"
  19. #define LUA_OSLIBNAME "os"
  20. LUALIB_API int luaopen_io (lua_State *L);
  21. #define LUA_STRLIBNAME "string"
  22. LUALIB_API int luaopen_string (lua_State *L);
  23. #define LUA_MATHLIBNAME "math"
  24. LUALIB_API int luaopen_math (lua_State *L);
  25. #define LUA_DBLIBNAME "debug"
  26. LUALIB_API int luaopen_debug (lua_State *L);
  27. LUALIB_API int luaopen_loadlib (lua_State *L);
  28. /* to help testing the libraries */
  29. #ifndef lua_assert
  30. #define lua_assert(c) /* empty */
  31. #endif
  32. #endif