Advertisement
Xetrill

lib_base.c

Aug 18th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. LUALIB_API int luaopen_base(lua_State *L)
  2. {
  3.     int retval = 1;
  4.  
  5.     base_open(L);
  6.     luaL_register(L, LUA_COLIBNAME, co_funcs);
  7. #ifndef COCO_DISABLE
  8.     lua_pushboolean(L, 1);
  9.     lua_setfield(L, -2, "coco");
  10.     retval += 1;
  11. #endif
  12.    
  13.     retval += luaopen_debug(L);
  14.  
  15.     return retval;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement