Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. /*
  3. ** $Id: lualib.h,v 1.36 2005/12/27 17:12:00 roberto Exp $
  4. ** Lua standard libraries
  5. ** See Copyright Notice in lua.h
  6. */
  7. #ifndef lualib_h
  8. #define lualib_h
  9. #include "lua.h"
  10. /* Key to file-handle type */
  11. #define LUA_FILEHANDLE "FILE*"
  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. LUALIB_API int (luaopen_io) (lua_State *L);
  18. #define LUA_OSLIBNAME "os"
  19. LUALIB_API int (luaopen_os) (lua_State *L);
  20. #define LUA_STRLIBNAME "string"
  21. LUALIB_API int (luaopen_string) (lua_State *L);
  22. #define LUA_MATHLIBNAME "math"
  23. LUALIB_API int (luaopen_math) (lua_State *L);
  24. #define LUA_DBLIBNAME "debug"
  25. LUALIB_API int (luaopen_debug) (lua_State *L);
  26. #define LUA_LOADLIBNAME "package"
  27. LUALIB_API int (luaopen_package) (lua_State *L);
  28. /* open all previous libraries */
  29. LUALIB_API void (luaL_openlibs) (lua_State *L);
  30. #ifndef lua_assert
  31. #define lua_assert(x) ((void)0)
  32. #endif
  33. #endif