lualib.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. ** $Id: lualib.h,v 1.27 2003/03/17 13:04:58 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. #define LUA_COLIBNAME "coroutine"
  13. LUALIB_API int luaopen_base (lua_State *L);
  14. #define LUA_TABLIBNAME "table"
  15. LUALIB_API int luaopen_table (lua_State *L);
  16. #define LUA_IOLIBNAME "io"
  17. #define LUA_OSLIBNAME "os"
  18. LUALIB_API int luaopen_io (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. /* to help testing the libraries */
  27. #ifndef lua_assert
  28. #define lua_assert(c) /* empty */
  29. #endif
  30. /* compatibility code */
  31. #define lua_baselibopen luaopen_base
  32. #define lua_tablibopen luaopen_table
  33. #define lua_iolibopen luaopen_io
  34. #define lua_strlibopen luaopen_string
  35. #define lua_mathlibopen luaopen_math
  36. #define lua_dblibopen luaopen_debug
  37. #endif