Code::Blocks
SVN r11506
|
#include <squirrel.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <sqstdsystem.h>
Go to the source code of this file.
Macros | |
#define | scgetenv getenv |
#define | scsystem system |
#define | scasctime asctime |
#define | scremove remove |
#define | screname rename |
#define | _DECL_FUNC(name, nparams, pmask) {_SC(#name),_system_##name,nparams,pmask} |
Functions | |
static SQInteger | _system_getenv (HSQUIRRELVM v) |
static SQInteger | _system_system (HSQUIRRELVM v) |
static SQInteger | _system_clock (HSQUIRRELVM v) |
static SQInteger | _system_time (HSQUIRRELVM v) |
static SQInteger | _system_remove (HSQUIRRELVM v) |
static SQInteger | _system_rename (HSQUIRRELVM v) |
static void | _set_integer_slot (HSQUIRRELVM v, const SQChar *name, SQInteger val) |
static SQInteger | _system_date (HSQUIRRELVM v) |
SQInteger | sqstd_register_systemlib (HSQUIRRELVM v) |
Variables | |
static SQRegFunction | systemlib_funcs [] |
#define _DECL_FUNC | ( | name, | |
nparams, | |||
pmask | |||
) | {_SC(#name),_system_##name,nparams,pmask} |
Definition at line 121 of file sqstdsystem.cpp.
#define scasctime asctime |
Definition at line 18 of file sqstdsystem.cpp.
#define scgetenv getenv |
Definition at line 16 of file sqstdsystem.cpp.
Referenced by _system_getenv().
#define scremove remove |
Definition at line 19 of file sqstdsystem.cpp.
Referenced by _system_remove().
#define screname rename |
Definition at line 20 of file sqstdsystem.cpp.
Referenced by _system_rename().
#define scsystem system |
Definition at line 17 of file sqstdsystem.cpp.
Referenced by _system_system().
|
static |
Definition at line 78 of file sqstdsystem.cpp.
References sq_pushinteger(), sq_pushstring(), and sq_rawset().
Referenced by _system_date().
|
static |
Definition at line 45 of file sqstdsystem.cpp.
References sq_pushfloat().
|
static |
Definition at line 85 of file sqstdsystem.cpp.
References _set_integer_slot(), sq_getinteger(), sq_gettop(), sq_newtable(), and sq_throwerror().
|
static |
Definition at line 23 of file sqstdsystem.cpp.
References scgetenv, sq_getstring(), and sq_pushstring().
|
static |
Definition at line 59 of file sqstdsystem.cpp.
References scremove, sq_getstring(), and sq_throwerror().
|
static |
Definition at line 68 of file sqstdsystem.cpp.
References screname, sq_getstring(), and sq_throwerror().
|
static |
Definition at line 34 of file sqstdsystem.cpp.
References scsystem, sq_getstring(), sq_pushinteger(), and sq_throwerror().
|
static |
Definition at line 51 of file sqstdsystem.cpp.
References sq_pushinteger().
SQInteger sqstd_register_systemlib | ( | HSQUIRRELVM | v | ) |
Definition at line 134 of file sqstdsystem.cpp.
References sq_newclosure(), sq_pushstring(), sq_setnativeclosurename(), sq_setparamscheck(), and systemlib_funcs.
|
static |
Definition at line 122 of file sqstdsystem.cpp.
Referenced by sqstd_register_systemlib().