lualib.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. ** $Id: lualib.h,v 1.25 2002/07/09 18:49:13 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 extern
  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. /* to help testing the libraries */
  26. #ifndef lua_assert
  27. #define lua_assert(c) /* empty */
  28. #endif
  29. /* compatibility code */
  30. #define lua_baselibopen luaopen_base
  31. #define lua_tablibopen luaopen_table
  32. #define lua_iolibopen luaopen_io
  33. #define lua_strlibopen luaopen_string
  34. #define lua_mathlibopen luaopen_math
  35. #define lua_dblibopen luaopen_debug
  36. #endif