Add lextra.c and extra library, with sleep() now part of it instead of in os

This commit is contained in:
Jeremy Baxter 2023-07-01 09:52:01 +12:00
parent 2d78ec849e
commit 4fb243af7b
5 changed files with 91 additions and 64 deletions

View file

@ -17,6 +17,7 @@
#define CALLISTO_CLLIBNAME "cl"
#define CALLISTO_ENVLIBNAME "environment"
#define CALLISTO_EXTLIBNAME "_G" /* global table */
#define CALLISTO_FILELIBNAME "file"
#define CALLISTO_JSONLIBNAME "json"
#define CALLISTO_MATHLIBNAME "math"
@ -26,6 +27,7 @@
int callistoopen_cl(lua_State *);
int callistoopen_environment(lua_State *);
int callistoopen_extra(lua_State *);
int callistoopen_file(lua_State *);
int callistoopen_json(lua_State *);
int callistoopen_math(lua_State *);