Minor baselib.c refactor; added string.charAt()

This commit is contained in:
2021-01-19 22:54:06 -06:00
parent d690c3040d
commit 71e9331551
2 changed files with 84 additions and 43 deletions

View File

@@ -3,7 +3,12 @@
#include "cstate.h"
/* loads all of the base library, including:
- base library ("print", "assert", "type", "pcall", "loadstring", etc.)
- string library ("string.sub", "string.split", "string.find")
*/
COSMO_API void cosmoB_loadLibrary(CState *state);
COSMO_API void cosmoB_loadStrLib(CState *state);
COSMO_API void cosmoB_loadDebug(CState *state);
COSMO_API int cosmoB_print(CState *state, int nargs, CValue *args);
COSMO_API int cosmoB_assert(CState *state, int nargs, CValue *args);