lualib.h 841 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. ** $Id: lualib.h,v 1.24 2002/06/18 17:42:52 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 lua_baselibopen (lua_State *L);
  14. #define LUA_TABLIBNAME "table"
  15. LUALIB_API int lua_tablibopen (lua_State *L);
  16. #define LUA_IOLIBNAME "io"
  17. #define LUA_OSLIBNAME "os"
  18. LUALIB_API int lua_iolibopen (lua_State *L);
  19. #define LUA_STRLIBNAME "string"
  20. LUALIB_API int lua_strlibopen (lua_State *L);
  21. #define LUA_MATHLIBNAME "math"
  22. LUALIB_API int lua_mathlibopen (lua_State *L);
  23. #define LUA_DBLIBNAME "debug"
  24. LUALIB_API int lua_dblibopen (lua_State *L);
  25. /* to help testing the libraries */
  26. #ifndef lua_assert
  27. #define lua_assert(c) /* empty */
  28. #endif
  29. #endif