Code::Blocks
SVN r11506
|
Go to the source code of this file.
Macros | |
#define | SINGLE_ARG_FUNC(_funcname) |
#define | TWO_ARGS_FUNC(_funcname) |
#define | _DECL_FUNC(name, nparams, tycheck) {_SC(#name),math_##name,nparams,tycheck} |
#define | M_PI (3.14159265358979323846) |
Functions | |
static SQInteger | math_srand (HSQUIRRELVM v) |
static SQInteger | math_rand (HSQUIRRELVM v) |
static SQInteger | math_abs (HSQUIRRELVM v) |
SQRESULT | sqstd_register_mathlib (HSQUIRRELVM v) |
Variables | |
static SQRegFunction | mathlib_funcs [] |
#define _DECL_FUNC | ( | name, | |
nparams, | |||
tycheck | |||
) | {_SC(#name),math_##name,nparams,tycheck} |
Definition at line 61 of file sqstdmath.cpp.
#define M_PI (3.14159265358979323846) |
Definition at line 85 of file sqstdmath.cpp.
Referenced by sqstd_register_mathlib().
#define SINGLE_ARG_FUNC | ( | _funcname | ) |
Definition at line 7 of file sqstdmath.cpp.
Referenced by math_abs().
#define TWO_ARGS_FUNC | ( | _funcname | ) |
Definition at line 14 of file sqstdmath.cpp.
Referenced by math_abs().
|
static |
Definition at line 37 of file sqstdmath.cpp.
References SINGLE_ARG_FUNC, sq_getinteger(), sq_pushinteger(), and TWO_ARGS_FUNC.
|
static |
Definition at line 31 of file sqstdmath.cpp.
References sq_pushinteger().
|
static |
Definition at line 22 of file sqstdmath.cpp.
References sq_getinteger(), and sq_throwerror().
SQRESULT sqstd_register_mathlib | ( | HSQUIRRELVM | v | ) |
Definition at line 88 of file sqstdmath.cpp.
References M_PI, mathlib_funcs, sq_newclosure(), sq_pushfloat(), sq_pushinteger(), sq_pushstring(), sq_setnativeclosurename(), and sq_setparamscheck().
|
static |
Definition at line 62 of file sqstdmath.cpp.
Referenced by sqstd_register_mathlib().