6 #include <sqstdsystem.h> 10 #define scgetenv _wgetenv 11 #define scsystem _wsystem 12 #define scasctime _wasctime 13 #define scremove _wremove 14 #define screname _wrename 16 #define scgetenv getenv 17 #define scsystem system 18 #define scasctime asctime 19 #define scremove remove 20 #define screname rename 47 sq_pushfloat(v,((SQFloat)clock())/(SQFloat)CLOCKS_PER_SEC);
89 SQInteger format =
'l';
104 date = localtime(&t);
121 #define _DECL_FUNC(name,nparams,pmask) {_SC(#name),_system_##name,nparams,pmask} static SQInteger _system_rename(HSQUIRRELVM v)
static SQInteger _system_clock(HSQUIRRELVM v)
SQRESULT sq_throwerror(HSQUIRRELVM v, const SQChar *err)
void sq_newtable(HSQUIRRELVM v)
SQRESULT sq_rawset(HSQUIRRELVM v, SQInteger idx)
void sq_pushfloat(HSQUIRRELVM v, SQFloat n)
SQRESULT sq_getinteger(HSQUIRRELVM v, SQInteger idx, SQInteger *i)
SQInteger sq_gettop(HSQUIRRELVM v)
void sq_pushinteger(HSQUIRRELVM v, SQInteger n)
void sq_newclosure(HSQUIRRELVM v, SQFUNCTION func, SQUnsignedInteger nfreevars)
SQRESULT sq_setnativeclosurename(HSQUIRRELVM v, SQInteger idx, const SQChar *name)
static SQInteger _system_getenv(HSQUIRRELVM v)
static SQInteger _system_time(HSQUIRRELVM v)
#define _DECL_FUNC(name, nparams, pmask)
SQRESULT sq_setparamscheck(HSQUIRRELVM v, SQInteger nparamscheck, const SQChar *typemask)
void sq_pushstring(HSQUIRRELVM v, const SQChar *s, SQInteger len)
SQRESULT sq_getstring(HSQUIRRELVM v, SQInteger idx, const SQChar **c)
static SQInteger _system_remove(HSQUIRRELVM v)
static SQInteger _system_date(HSQUIRRELVM v)
static SQRegFunction systemlib_funcs[]
static void _set_integer_slot(HSQUIRRELVM v, const SQChar *name, SQInteger val)
static SQInteger _system_system(HSQUIRRELVM v)
SQInteger sqstd_register_systemlib(HSQUIRRELVM v)