Add lextra.c and extra library, with sleep() now part of it instead of in os
This commit is contained in:
parent
2d78ec849e
commit
4fb243af7b
5 changed files with 91 additions and 64 deletions
|
@ -12,6 +12,7 @@
|
|||
static const luaL_Reg loadedlibs[] = {
|
||||
{CALLISTO_CLLIBNAME, callistoopen_cl},
|
||||
{CALLISTO_ENVLIBNAME, callistoopen_environment},
|
||||
{CALLISTO_EXTLIBNAME, callistoopen_extra},
|
||||
{CALLISTO_FILELIBNAME, callistoopen_file},
|
||||
{CALLISTO_JSONLIBNAME, callistoopen_json},
|
||||
{CALLISTO_MATHLIBNAME, callistoopen_math},
|
||||
|
@ -42,7 +43,6 @@ callisto_openlibs(lua_State *L)
|
|||
lua_newtable(L);
|
||||
lib->func(L); /* load library */
|
||||
lua_setglobal(L, lib->name);
|
||||
//lua_pop(L, 1); /* remove lib */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue