Code::Blocks
SVN r11506
|
#include "sqpcheader.h"
#include "sqvm.h"
#include "sqstring.h"
#include "sqtable.h"
#include "sqarray.h"
#include "sqfuncproto.h"
#include "sqclosure.h"
#include "squserdata.h"
#include "sqcompiler.h"
#include "sqfuncstate.h"
#include "sqclass.h"
Go to the source code of this file.
Classes | |
struct | BufState |
Macros | |
#define | _GETSAFE_OBJ(v, idx, type, o) { if(!sq_aux_gettypedarg(v,idx,type,&o)) return SQ_ERROR; } |
#define | sq_aux_paramscheck(v, count) |
Functions | |
bool | sq_aux_gettypedarg (HSQUIRRELVM v, SQInteger idx, SQObjectType type, SQObjectPtr **o) |
SQInteger | sq_aux_throwobject (HSQUIRRELVM v, SQObjectPtr &e) |
SQInteger | sq_aux_invalidtype (HSQUIRRELVM v, SQObjectType type) |
HSQUIRRELVM | sq_open (SQInteger initialstacksize) |
HSQUIRRELVM | sq_newthread (HSQUIRRELVM friendvm, SQInteger initialstacksize) |
SQInteger | sq_getvmstate (HSQUIRRELVM v) |
void | sq_seterrorhandler (HSQUIRRELVM v) |
void | sq_setdebughook (HSQUIRRELVM v) |
void | sq_close (HSQUIRRELVM v) |
SQRESULT | sq_compile (HSQUIRRELVM v, SQLEXREADFUNC read, SQUserPointer p, const SQChar *sourcename, SQBool raiseerror) |
void | sq_enabledebuginfo (HSQUIRRELVM v, SQBool enable) |
void | sq_notifyallexceptions (HSQUIRRELVM v, SQBool enable) |
void | sq_addref (HSQUIRRELVM v, HSQOBJECT *po) |
SQBool | sq_release (HSQUIRRELVM v, HSQOBJECT *po) |
const SQChar * | sq_objtostring (HSQOBJECT *o) |
SQInteger | sq_objtointeger (HSQOBJECT *o) |
SQFloat | sq_objtofloat (HSQOBJECT *o) |
SQBool | sq_objtobool (HSQOBJECT *o) |
void | sq_pushnull (HSQUIRRELVM v) |
void | sq_pushstring (HSQUIRRELVM v, const SQChar *s, SQInteger len) |
void | sq_pushinteger (HSQUIRRELVM v, SQInteger n) |
void | sq_pushbool (HSQUIRRELVM v, SQBool b) |
void | sq_pushfloat (HSQUIRRELVM v, SQFloat n) |
void | sq_pushuserpointer (HSQUIRRELVM v, SQUserPointer p) |
SQUserPointer | sq_newuserdata (HSQUIRRELVM v, SQUnsignedInteger size) |
void | sq_newtable (HSQUIRRELVM v) |
void | sq_newarray (HSQUIRRELVM v, SQInteger size) |
SQRESULT | sq_newclass (HSQUIRRELVM v, SQBool hasbase) |
SQBool | sq_instanceof (HSQUIRRELVM v) |
SQRESULT | sq_arrayappend (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_arraypop (HSQUIRRELVM v, SQInteger idx, SQBool pushval) |
SQRESULT | sq_arrayresize (HSQUIRRELVM v, SQInteger idx, SQInteger newsize) |
SQRESULT | sq_arrayreverse (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_arrayremove (HSQUIRRELVM v, SQInteger idx, SQInteger itemidx) |
SQRESULT | sq_arrayinsert (HSQUIRRELVM v, SQInteger idx, SQInteger destpos) |
void | sq_newclosure (HSQUIRRELVM v, SQFUNCTION func, SQUnsignedInteger nfreevars) |
SQRESULT | sq_getclosureinfo (HSQUIRRELVM v, SQInteger idx, SQUnsignedInteger *nparams, SQUnsignedInteger *nfreevars) |
SQRESULT | sq_setnativeclosurename (HSQUIRRELVM v, SQInteger idx, const SQChar *name) |
SQRESULT | sq_setparamscheck (HSQUIRRELVM v, SQInteger nparamscheck, const SQChar *typemask) |
SQRESULT | sq_bindenv (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_clear (HSQUIRRELVM v, SQInteger idx) |
void | sq_pushroottable (HSQUIRRELVM v) |
void | sq_pushregistrytable (HSQUIRRELVM v) |
void | sq_pushconsttable (HSQUIRRELVM v) |
SQRESULT | sq_setroottable (HSQUIRRELVM v) |
SQRESULT | sq_setconsttable (HSQUIRRELVM v) |
void | sq_setforeignptr (HSQUIRRELVM v, SQUserPointer p) |
SQUserPointer | sq_getforeignptr (HSQUIRRELVM v) |
void | sq_push (HSQUIRRELVM v, SQInteger idx) |
SQObjectType | sq_gettype (HSQUIRRELVM v, SQInteger idx) |
void | sq_tostring (HSQUIRRELVM v, SQInteger idx) |
void | sq_tobool (HSQUIRRELVM v, SQInteger idx, SQBool *b) |
SQRESULT | sq_getinteger (HSQUIRRELVM v, SQInteger idx, SQInteger *i) |
SQRESULT | sq_getfloat (HSQUIRRELVM v, SQInteger idx, SQFloat *f) |
SQRESULT | sq_getbool (HSQUIRRELVM v, SQInteger idx, SQBool *b) |
SQRESULT | sq_getstring (HSQUIRRELVM v, SQInteger idx, const SQChar **c) |
SQRESULT | sq_getthread (HSQUIRRELVM v, SQInteger idx, HSQUIRRELVM *thread) |
SQRESULT | sq_clone (HSQUIRRELVM v, SQInteger idx) |
SQInteger | sq_getsize (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getuserdata (HSQUIRRELVM v, SQInteger idx, SQUserPointer *p, SQUserPointer *typetag) |
SQRESULT | sq_settypetag (HSQUIRRELVM v, SQInteger idx, SQUserPointer typetag) |
SQRESULT | sq_getobjtypetag (HSQOBJECT *o, SQUserPointer *typetag) |
SQRESULT | sq_gettypetag (HSQUIRRELVM v, SQInteger idx, SQUserPointer *typetag) |
SQRESULT | sq_getuserpointer (HSQUIRRELVM v, SQInteger idx, SQUserPointer *p) |
SQRESULT | sq_setinstanceup (HSQUIRRELVM v, SQInteger idx, SQUserPointer p) |
SQRESULT | sq_setclassudsize (HSQUIRRELVM v, SQInteger idx, SQInteger udsize) |
SQRESULT | sq_getinstanceup (HSQUIRRELVM v, SQInteger idx, SQUserPointer *p, SQUserPointer typetag) |
SQInteger | sq_gettop (HSQUIRRELVM v) |
void | sq_settop (HSQUIRRELVM v, SQInteger newtop) |
void | sq_pop (HSQUIRRELVM v, SQInteger nelemstopop) |
void | sq_poptop (HSQUIRRELVM v) |
void | sq_remove (HSQUIRRELVM v, SQInteger idx) |
SQInteger | sq_cmp (HSQUIRRELVM v) |
SQRESULT | sq_newslot (HSQUIRRELVM v, SQInteger idx, SQBool bstatic) |
SQRESULT | sq_deleteslot (HSQUIRRELVM v, SQInteger idx, SQBool pushval) |
SQRESULT | sq_set (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_rawset (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_setdelegate (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_rawdeleteslot (HSQUIRRELVM v, SQInteger idx, SQBool pushval) |
SQRESULT | sq_getdelegate (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_get (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_rawget (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getstackobj (HSQUIRRELVM v, SQInteger idx, HSQOBJECT *po) |
const SQChar * | sq_getlocal (HSQUIRRELVM v, SQUnsignedInteger level, SQUnsignedInteger idx) |
void | sq_pushobject (HSQUIRRELVM v, HSQOBJECT obj) |
void | sq_resetobject (HSQOBJECT *po) |
SQRESULT | sq_throwerror (HSQUIRRELVM v, const SQChar *err) |
void | sq_reseterror (HSQUIRRELVM v) |
void | sq_getlasterror (HSQUIRRELVM v) |
void | sq_reservestack (HSQUIRRELVM v, SQInteger nsize) |
SQRESULT | sq_resume (HSQUIRRELVM v, SQBool retval, SQBool raiseerror) |
SQRESULT | sq_call (HSQUIRRELVM v, SQInteger params, SQBool retval, SQBool raiseerror) |
SQRESULT | sq_suspendvm (HSQUIRRELVM v) |
SQRESULT | sq_wakeupvm (HSQUIRRELVM v, SQBool wakeupret, SQBool retval, SQBool raiseerror, SQBool throwerror) |
void | sq_setreleasehook (HSQUIRRELVM v, SQInteger idx, SQRELEASEHOOK hook) |
void | sq_setcompilererrorhandler (HSQUIRRELVM v, SQCOMPILERERROR f) |
SQRESULT | sq_writeclosure (HSQUIRRELVM v, SQWRITEFUNC w, SQUserPointer up) |
SQRESULT | sq_readclosure (HSQUIRRELVM v, SQREADFUNC r, SQUserPointer up) |
SQChar * | sq_getscratchpad (HSQUIRRELVM v, SQInteger minsize) |
SQInteger | sq_collectgarbage (HSQUIRRELVM v) |
const SQChar * | sq_getfreevariable (HSQUIRRELVM v, SQInteger idx, SQUnsignedInteger nval) |
SQRESULT | sq_setfreevariable (HSQUIRRELVM v, SQInteger idx, SQUnsignedInteger nval) |
SQRESULT | sq_setattributes (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getattributes (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getbase (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getclass (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_createinstance (HSQUIRRELVM v, SQInteger idx) |
void | sq_weakref (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getweakrefval (HSQUIRRELVM v, SQInteger idx) |
SQRESULT | sq_getdefaultdelegate (HSQUIRRELVM v, SQObjectType t) |
SQRESULT | sq_next (HSQUIRRELVM v, SQInteger idx) |
SQInteger | buf_lexfeed (SQUserPointer file) |
SQRESULT | sq_compilebuffer (HSQUIRRELVM v, const SQChar *s, SQInteger size, const SQChar *sourcename, SQBool raiseerror) |
void | sq_move (HSQUIRRELVM dest, HSQUIRRELVM src, SQInteger idx) |
void | sq_setprintfunc (HSQUIRRELVM v, SQPRINTFUNCTION printfunc) |
SQPRINTFUNCTION | sq_getprintfunc (HSQUIRRELVM v) |
void * | sq_malloc (SQUnsignedInteger size) |
void * | sq_realloc (void *p, SQUnsignedInteger oldsize, SQUnsignedInteger newsize) |
void | sq_free (void *p, SQUnsignedInteger size) |
struct BufState |
#define _GETSAFE_OBJ | ( | v, | |
idx, | |||
type, | |||
o | |||
) | { if(!sq_aux_gettypedarg(v,idx,type,&o)) return SQ_ERROR; } |
Definition at line 27 of file sqapi.cpp.
Referenced by sq_arrayappend(), sq_arrayinsert(), sq_arraypop(), sq_arrayremove(), sq_arrayresize(), sq_arrayreverse(), sq_createinstance(), sq_deleteslot(), sq_getattributes(), sq_getbase(), sq_getclass(), sq_getstring(), sq_getthread(), sq_getuserdata(), sq_getuserpointer(), sq_rawdeleteslot(), sq_setattributes(), and sq_writeclosure().
#define sq_aux_paramscheck | ( | v, | |
count | |||
) |
Definition at line 29 of file sqapi.cpp.
Referenced by sq_arrayappend(), sq_arrayinsert(), sq_arraypop(), sq_arrayremove(), sq_arrayresize(), sq_arrayreverse(), sq_deleteslot(), sq_newslot(), and sq_rawdeleteslot().
SQInteger buf_lexfeed | ( | SQUserPointer | file | ) |
Definition at line 1228 of file sqapi.cpp.
References BufState::buf, BufState::ptr, and BufState::size.
Referenced by sq_compilebuffer().
SQRESULT sq_arrayappend | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 263 of file sqapi.cpp.
References _GETSAFE_OBJ, and sq_aux_paramscheck.
Referenced by _regexp_capture(), _string_split(), and array_append().
SQRESULT sq_arrayinsert | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQInteger | destpos | ||
) |
Definition at line 327 of file sqapi.cpp.
References _GETSAFE_OBJ, sq_aux_paramscheck, and sq_throwerror().
SQRESULT sq_arraypop | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQBool | pushval | ||
) |
Definition at line 273 of file sqapi.cpp.
References _GETSAFE_OBJ, sq_aux_paramscheck, and sq_throwerror().
Referenced by array_pop().
SQRESULT sq_arrayremove | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQInteger | itemidx | ||
) |
Definition at line 319 of file sqapi.cpp.
References _GETSAFE_OBJ, sq_aux_paramscheck, and sq_throwerror().
SQRESULT sq_arrayresize | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQInteger | newsize | ||
) |
Definition at line 286 of file sqapi.cpp.
References _GETSAFE_OBJ, sq_aux_paramscheck, and sq_throwerror().
SQRESULT sq_arrayreverse | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 299 of file sqapi.cpp.
References _GETSAFE_OBJ, and sq_aux_paramscheck.
Referenced by array_reverse().
bool sq_aux_gettypedarg | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQObjectType | type, | ||
SQObjectPtr ** | o | ||
) |
Definition at line 16 of file sqapi.cpp.
References IdType2Name().
SQInteger sq_aux_invalidtype | ( | HSQUIRRELVM | v, |
SQObjectType | type | ||
) |
Definition at line 40 of file sqapi.cpp.
References IdType2Name(), and sq_throwerror().
Referenced by sq_clone(), sq_getsize(), sq_setdelegate(), and sq_setfreevariable().
SQInteger sq_aux_throwobject | ( | HSQUIRRELVM | v, |
SQObjectPtr & | e | ||
) |
SQRESULT sq_bindenv | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 395 of file sqapi.cpp.
References sq_throwerror().
Referenced by closure_bindenv().
SQRESULT sq_call | ( | HSQUIRRELVM | v, |
SQInteger | params, | ||
SQBool | retval, | ||
SQBool | raiseerror | ||
) |
Definition at line 954 of file sqapi.cpp.
References sq_throwerror().
Referenced by _closure_acall(), _sort_compare(), closure_call(), closure_pcall(), sqstd_createblob(), sqstd_createfile(), sqstd_dofile(), and thread_call().
SQRESULT sq_clear | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
SQRESULT sq_clone | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 555 of file sqapi.cpp.
References _null_, and sq_aux_invalidtype().
SQInteger sq_collectgarbage | ( | HSQUIRRELVM | v | ) |
Definition at line 1049 of file sqapi.cpp.
Referenced by base_collectgarbage().
SQRESULT sq_compile | ( | HSQUIRRELVM | v, |
SQLEXREADFUNC | read, | ||
SQUserPointer | p, | ||
const SQChar * | sourcename, | ||
SQBool | raiseerror | ||
) |
Definition at line 117 of file sqapi.cpp.
References Compile().
Referenced by sq_compilebuffer(), and sqstd_loadfile().
SQRESULT sq_compilebuffer | ( | HSQUIRRELVM | v, |
const SQChar * | s, | ||
SQInteger | size, | ||
const SQChar * | sourcename, | ||
SQBool | raiseerror | ||
) |
Definition at line 1236 of file sqapi.cpp.
References BufState::buf, buf_lexfeed(), BufState::ptr, BufState::size, and sq_compile().
Referenced by base_compilestring().
SQRESULT sq_createinstance | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1158 of file sqapi.cpp.
References _GETSAFE_OBJ, and NULL.
Referenced by class_instance(), and CreateNativeClassInstance().
SQRESULT sq_deleteslot | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQBool | pushval | ||
) |
Definition at line 716 of file sqapi.cpp.
References _GETSAFE_OBJ, sq_aux_paramscheck, and sq_throwerror().
void sq_enabledebuginfo | ( | HSQUIRRELVM | v, |
SQBool | enable | ||
) |
Definition at line 127 of file sqapi.cpp.
Referenced by base_enabledebuginfo().
void sq_free | ( | void * | p, |
SQUnsignedInteger | size | ||
) |
Definition at line 1269 of file sqapi.cpp.
Referenced by sqstd_rex_free().
SQRESULT sq_get | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 840 of file sqapi.cpp.
References sq_throwerror().
Referenced by CreateClass(), SqPlus::CreateClass(), declare_stream(), init_streamclass(), sqstd_createblob(), and sqstd_createfile().
SQRESULT sq_getattributes | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1119 of file sqapi.cpp.
References _GETSAFE_OBJ, NULL, and sq_throwerror().
Referenced by class_getattributes().
SQRESULT sq_getbase | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1139 of file sqapi.cpp.
References _GETSAFE_OBJ, _null_, and NULL.
SQRESULT sq_getbool | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQBool * | b | ||
) |
Definition at line 529 of file sqapi.cpp.
Referenced by _g_io_dofile(), _g_io_loadfile(), and sqstd_printcallstack().
SQRESULT sq_getclass | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1150 of file sqapi.cpp.
References _GETSAFE_OBJ, and NULL.
Referenced by instance_getclass().
SQRESULT sq_getclosureinfo | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUnsignedInteger * | nparams, | ||
SQUnsignedInteger * | nfreevars | ||
) |
Definition at line 349 of file sqapi.cpp.
References sq_throwerror().
SQRESULT sq_getdefaultdelegate | ( | HSQUIRRELVM | v, |
SQObjectType | t | ||
) |
Definition at line 1186 of file sqapi.cpp.
References sq_throwerror().
SQRESULT sq_getdelegate | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 822 of file sqapi.cpp.
References _null_, and sq_throwerror().
SQRESULT sq_getfloat | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQFloat * | f | ||
) |
Definition at line 519 of file sqapi.cpp.
Referenced by _g_blob_castf2i(), _g_blob_swapfloat(), _stream_writen(), sqstd_format(), and sqstd_printcallstack().
const SQChar* sq_getfreevariable | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUnsignedInteger | nval | ||
) |
SQRESULT sq_getinstanceup | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUserPointer * | p, | ||
SQUserPointer | typetag | ||
) |
Definition at line 647 of file sqapi.cpp.
References NULL, and sq_throwerror().
Referenced by ScriptBindings::IsNull(), ScriptBindings::ShowModalForDialogs(), sqstd_createblob(), sqstd_getblob(), sqstd_getblobsize(), and sqstd_getfile().
SQRESULT sq_getinteger | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQInteger * | i | ||
) |
Definition at line 509 of file sqapi.cpp.
Referenced by _blob__get(), _blob__nexti(), _blob__set(), _blob_constructor(), _blob_resize(), _g_blob_casti2f(), _g_blob_swap2(), _g_blob_swap4(), _regexp_capture(), _regexp_search(), _sort_compare(), _stream_readblob(), _stream_readn(), _stream_seek(), _stream_writen(), _system_date(), base_getstackinfos(), math_abs(), math_srand(), sqstd_format(), sqstd_printcallstack(), and string_find().
const SQChar* sq_getlocal | ( | HSQUIRRELVM | v, |
SQUnsignedInteger | level, | ||
SQUnsignedInteger | idx | ||
) |
Definition at line 883 of file sqapi.cpp.
References NULL.
Referenced by base_getstackinfos(), and sqstd_printcallstack().
SQRESULT sq_getobjtypetag | ( | HSQOBJECT * | o, |
SQUserPointer * | typetag | ||
) |
Definition at line 602 of file sqapi.cpp.
Referenced by sq_gettypetag().
SQPRINTFUNCTION sq_getprintfunc | ( | HSQUIRRELVM | v | ) |
Definition at line 1254 of file sqapi.cpp.
Referenced by _sqstd_aux_printerror(), _sqstd_compiler_error(), ScriptBindings::Register_ScriptPlugin(), ScriptConsole::ScriptConsole(), and sqstd_printcallstack().
SQChar* sq_getscratchpad | ( | HSQUIRRELVM | v, |
SQInteger | minsize | ||
) |
Definition at line 1044 of file sqapi.cpp.
Referenced by _stream_readblob(), _string_split(), and sqstd_format().
SQInteger sq_getsize | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 566 of file sqapi.cpp.
References sq_aux_invalidtype().
Referenced by _string_rstrip(), _string_split(), _string_strip(), base_compilestring(), default_delegate_len(), get_slice_params(), sqstd_format(), and string_find().
SQRESULT sq_getstackobj | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
HSQOBJECT * | po | ||
) |
SQRESULT sq_getstring | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
const SQChar ** | c | ||
) |
Definition at line 539 of file sqapi.cpp.
References _GETSAFE_OBJ, and NULL.
Referenced by _file_constructor(), _g_io_dofile(), _g_io_loadfile(), _g_io_writeclosuretofile(), _regexp_capture(), _regexp_constructor(), _regexp_match(), _regexp_search(), _sqstd_aux_printerror(), _string_lstrip(), _string_rstrip(), _string_split(), _string_strip(), _system_getenv(), _system_remove(), _system_rename(), _system_system(), base_compilestring(), base_print(), sqstd_format(), sqstd_printcallstack(), and string_find().
SQRESULT sq_getthread | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
HSQUIRRELVM * | thread | ||
) |
Definition at line 547 of file sqapi.cpp.
References _GETSAFE_OBJ, and NULL.
SQInteger sq_gettop | ( | HSQUIRRELVM | v | ) |
Definition at line 664 of file sqapi.cpp.
Referenced by _blob_constructor(), _g_io_dofile(), _g_io_loadfile(), _regexp_capture(), _regexp_search(), _sort_compare(), _sqstd_aux_printerror(), _stream_seek(), _system_date(), array_resize(), array_sort(), base_array(), base_compilestring(), closure_call(), closure_pcall(), CreateClass(), SqPlus::CreateClass(), CreateNativeClassInstance(), declare_stream(), get_slice_params(), SqPlus::RegisterClassType(), sq_setreleasehook(), sq_settop(), sqstd_createblob(), sqstd_createfile(), sqstd_format(), sqstd_register_iolib(), string_find(), thread_call(), and thread_wakeup().
SQObjectType sq_gettype | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 489 of file sqapi.cpp.
Referenced by _blob__nexti(), _file_constructor(), declare_stream(), and sqstd_printcallstack().
SQRESULT sq_gettypetag | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUserPointer * | typetag | ||
) |
Definition at line 613 of file sqapi.cpp.
References sq_getobjtypetag(), and sq_throwerror().
SQRESULT sq_getuserdata | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUserPointer * | p, | ||
SQUserPointer * | typetag | ||
) |
Definition at line 582 of file sqapi.cpp.
References _GETSAFE_OBJ, and NULL.
SQRESULT sq_getuserpointer | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUserPointer * | p | ||
) |
Definition at line 621 of file sqapi.cpp.
References _GETSAFE_OBJ, and NULL.
Referenced by _file_constructor().
SQInteger sq_getvmstate | ( | HSQUIRRELVM | v | ) |
Definition at line 82 of file sqapi.cpp.
Referenced by sq_wakeupvm(), thread_getstatus(), and thread_wakeup().
SQRESULT sq_getweakrefval | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
SQBool sq_instanceof | ( | HSQUIRRELVM | v | ) |
Definition at line 254 of file sqapi.cpp.
References sq_throwerror().
void* sq_malloc | ( | SQUnsignedInteger | size | ) |
Definition at line 1259 of file sqapi.cpp.
Referenced by DumpLiteral(), and sqstd_rex_compile().
void sq_move | ( | HSQUIRRELVM | dest, |
HSQUIRRELVM | src, | ||
SQInteger | idx | ||
) |
Definition at line 1244 of file sqapi.cpp.
Referenced by base_newthread(), thread_call(), and thread_wakeup().
void sq_newarray | ( | HSQUIRRELVM | v, |
SQInteger | size | ||
) |
Definition at line 234 of file sqapi.cpp.
Referenced by _regexp_capture(), and _string_split().
SQRESULT sq_newclass | ( | HSQUIRRELVM | v, |
SQBool | hasbase | ||
) |
Definition at line 239 of file sqapi.cpp.
References NULL, and sq_throwerror().
Referenced by CreateClass(), SqPlus::CreateClass(), declare_stream(), init_streamclass(), and sqstd_register_stringlib().
void sq_newclosure | ( | HSQUIRRELVM | v, |
SQFUNCTION | func, | ||
SQUnsignedInteger | nfreevars | ||
) |
Definition at line 338 of file sqapi.cpp.
Referenced by CreateClass(), CreateStaticNamespace(), declare_stream(), init_streamclass(), sq_base_register(), sqstd_register_mathlib(), sqstd_register_stringlib(), sqstd_register_systemlib(), and sqstd_seterrorhandlers().
SQRESULT sq_newslot | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQBool | bstatic | ||
) |
Definition at line 703 of file sqapi.cpp.
References sq_aux_paramscheck, and sq_throwerror().
void sq_newtable | ( | HSQUIRRELVM | v | ) |
Definition at line 229 of file sqapi.cpp.
Referenced by _addrexmatch(), _system_date(), base_getstackinfos(), and CreateStaticNamespace().
HSQUIRRELVM sq_newthread | ( | HSQUIRRELVM | friendvm, |
SQInteger | initialstacksize | ||
) |
SQUserPointer sq_newuserdata | ( | HSQUIRRELVM | v, |
SQUnsignedInteger | size | ||
) |
SQRESULT sq_next | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1205 of file sqapi.cpp.
References sq_throwerror().
void sq_notifyallexceptions | ( | HSQUIRRELVM | v, |
SQBool | enable | ||
) |
const SQChar* sq_objtostring | ( | HSQOBJECT * | o | ) |
HSQUIRRELVM sq_open | ( | SQInteger | initialstacksize | ) |
void sq_pop | ( | HSQUIRRELVM | v, |
SQInteger | nelemstopop | ||
) |
Definition at line 678 of file sqapi.cpp.
Referenced by base_getstackinfos(), CreateClass(), SqPlus::CreateClass(), CreateStaticNamespace(), declare_stream(), init_streamclass(), sq_base_register(), sq_settop(), sqstd_dofile(), sqstd_printcallstack(), thread_call(), and thread_wakeup().
void sq_push | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 484 of file sqapi.cpp.
Referenced by _blob__set(), _g_io_dofile(), _sort_compare(), base_getstackinfos(), sqstd_createblob(), and sqstd_dofile().
void sq_pushbool | ( | HSQUIRRELVM | v, |
SQBool | b | ||
) |
Definition at line 207 of file sqapi.cpp.
Referenced by _regexp_match(), and container_rawexists().
void sq_pushfloat | ( | HSQUIRRELVM | v, |
SQFloat | n | ||
) |
Definition at line 212 of file sqapi.cpp.
Referenced by _g_blob_casti2f(), _g_blob_swapfloat(), _stream_readn(), _system_clock(), CreateStaticNamespace(), and sqstd_register_mathlib().
void sq_pushinteger | ( | HSQUIRRELVM | v, |
SQInteger | n | ||
) |
Definition at line 202 of file sqapi.cpp.
Referenced by _addrexmatch(), _blob__get(), _blob__nexti(), _g_blob_castf2i(), _g_blob_swap2(), _g_blob_swap4(), _regexp_subexpcount(), _set_integer_slot(), _stream_eos(), _stream_flush(), _stream_len(), _stream_readn(), _stream_seek(), _stream_tell(), _stream_writeblob(), _system_system(), _system_time(), base_collectgarbage(), base_getstackinfos(), CreateStaticNamespace(), math_abs(), math_rand(), sq_base_register(), sqstd_createblob(), sqstd_createfile(), sqstd_register_mathlib(), and string_find().
void sq_pushnull | ( | HSQUIRRELVM | v | ) |
Definition at line 190 of file sqapi.cpp.
References _null_.
Referenced by _blob__nexti(), _stream_eos(), _stream_flush(), sq_settop(), and sqstd_createfile().
void sq_pushregistrytable | ( | HSQUIRRELVM | v | ) |
Definition at line 442 of file sqapi.cpp.
Referenced by declare_stream(), init_streamclass(), sqstd_createblob(), and sqstd_createfile().
void sq_pushroottable | ( | HSQUIRRELVM | v | ) |
Definition at line 437 of file sqapi.cpp.
Referenced by _sort_compare(), CreateClass(), SqPlus::CreateClass(), CreateNativeClassInstance(), CreateStaticNamespace(), init_streamclass(), sq_base_register(), and sqstd_createfile().
void sq_pushstring | ( | HSQUIRRELVM | v, |
const SQChar * | s, | ||
SQInteger | len | ||
) |
Definition at line 195 of file sqapi.cpp.
References _null_.
Referenced by _addrexmatch(), _blob__typeof(), _file__typeof(), _regexp__typeof(), _set_integer_slot(), _string_format(), _string_lstrip(), _string_rstrip(), _string_split(), _string_strip(), _system_getenv(), base_getstackinfos(), CreateClass(), SqPlus::CreateClass(), CreateNativeClassInstance(), CreateStaticNamespace(), declare_stream(), init_streamclass(), sq_base_register(), sqstd_createblob(), sqstd_createfile(), sqstd_register_iolib(), sqstd_register_mathlib(), sqstd_register_stringlib(), sqstd_register_systemlib(), and thread_getstatus().
void sq_pushuserpointer | ( | HSQUIRRELVM | v, |
SQUserPointer | p | ||
) |
Definition at line 217 of file sqapi.cpp.
Referenced by sqstd_createfile().
SQRESULT sq_rawdeleteslot | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQBool | pushval | ||
) |
Definition at line 803 of file sqapi.cpp.
References _GETSAFE_OBJ, and sq_aux_paramscheck.
Referenced by table_rawdelete().
SQRESULT sq_rawget | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 849 of file sqapi.cpp.
References sq_throwerror().
Referenced by container_rawexists(), CreateNativeClassInstance(), and table_rawget().
SQRESULT sq_rawset | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 742 of file sqapi.cpp.
References sq_throwerror().
Referenced by _addrexmatch(), _set_integer_slot(), and table_rawset().
SQRESULT sq_readclosure | ( | HSQUIRRELVM | v, |
SQREADFUNC | r, | ||
SQUserPointer | up | ||
) |
Definition at line 1029 of file sqapi.cpp.
References sq_throwerror().
Referenced by sqstd_loadfile().
void* sq_realloc | ( | void * | p, |
SQUnsignedInteger | oldsize, | ||
SQUnsignedInteger | newsize | ||
) |
Definition at line 1264 of file sqapi.cpp.
Referenced by sqstd_rex_newnode().
void sq_remove | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 691 of file sqapi.cpp.
Referenced by CreateNativeClassInstance(), declare_stream(), sqstd_createblob(), sqstd_createfile(), and sqstd_dofile().
SQRESULT sq_resume | ( | HSQUIRRELVM | v, |
SQBool | retval, | ||
SQBool | raiseerror | ||
) |
Definition at line 941 of file sqapi.cpp.
References _null_, and sq_throwerror().
SQRESULT sq_setattributes | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1097 of file sqapi.cpp.
References _GETSAFE_OBJ, NULL, and sq_throwerror().
Referenced by class_setattributes().
SQRESULT sq_setclassudsize | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQInteger | udsize | ||
) |
Definition at line 637 of file sqapi.cpp.
References sq_throwerror().
void sq_setcompilererrorhandler | ( | HSQUIRRELVM | v, |
SQCOMPILERERROR | f | ||
) |
Definition at line 1012 of file sqapi.cpp.
Referenced by sqstd_seterrorhandlers().
SQRESULT sq_setconsttable | ( | HSQUIRRELVM | v | ) |
Definition at line 463 of file sqapi.cpp.
References sq_throwerror().
Referenced by base_setconsttable().
void sq_setdebughook | ( | HSQUIRRELVM | v | ) |
Definition at line 101 of file sqapi.cpp.
Referenced by base_setdebughook().
SQRESULT sq_setdelegate | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 776 of file sqapi.cpp.
References NULL, sq_aux_invalidtype(), and sq_throwerror().
Referenced by CreateStaticNamespace().
void sq_seterrorhandler | ( | HSQUIRRELVM | v | ) |
Definition at line 92 of file sqapi.cpp.
Referenced by base_seterrorhandler(), and sqstd_seterrorhandlers().
SQRESULT sq_setfreevariable | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUnsignedInteger | nval | ||
) |
Definition at line 1073 of file sqapi.cpp.
References sq_aux_invalidtype(), and sq_throwerror().
SQRESULT sq_setinstanceup | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUserPointer | p | ||
) |
Definition at line 629 of file sqapi.cpp.
References sq_throwerror().
Referenced by _blob_constructor(), _file_constructor(), _regexp_constructor(), construct_RefCounted(), and CreateNativeClassInstance().
SQRESULT sq_setnativeclosurename | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
const SQChar * | name | ||
) |
Definition at line 362 of file sqapi.cpp.
References sq_throwerror().
Referenced by CreateClass(), CreateStaticNamespace(), declare_stream(), sq_base_register(), sqstd_register_mathlib(), sqstd_register_stringlib(), and sqstd_register_systemlib().
SQRESULT sq_setparamscheck | ( | HSQUIRRELVM | v, |
SQInteger | nparamscheck, | ||
const SQChar * | typemask | ||
) |
Definition at line 373 of file sqapi.cpp.
References CompileTypemask(), and sq_throwerror().
Referenced by CreateClass(), CreateStaticNamespace(), declare_stream(), init_streamclass(), sq_base_register(), sqstd_register_mathlib(), sqstd_register_stringlib(), and sqstd_register_systemlib().
void sq_setprintfunc | ( | HSQUIRRELVM | v, |
SQPRINTFUNCTION | printfunc | ||
) |
Definition at line 1249 of file sqapi.cpp.
Referenced by ScriptingManager::LoadBufferRedirectOutput(), ScriptBindings::Register_ScriptPlugin(), ScriptConsole::ScriptConsole(), ScriptingManager::ScriptingManager(), and ScriptConsole::~ScriptConsole().
void sq_setreleasehook | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQRELEASEHOOK | hook | ||
) |
Definition at line 999 of file sqapi.cpp.
References sq_gettop().
Referenced by _blob_constructor(), _file_constructor(), _regexp_constructor(), construct_RefCounted(), and CreateNativeClassInstance().
SQRESULT sq_setroottable | ( | HSQUIRRELVM | v | ) |
Definition at line 452 of file sqapi.cpp.
References sq_throwerror().
Referenced by base_setroottable().
void sq_settop | ( | HSQUIRRELVM | v, |
SQInteger | newtop | ||
) |
Definition at line 669 of file sqapi.cpp.
References sq_gettop(), sq_pop(), and sq_pushnull().
Referenced by _sort_compare(), CreateClass(), SqPlus::CreateClass(), CreateNativeClassInstance(), declare_stream(), SqPlus::RegisterClassType(), sqstd_createblob(), sqstd_createfile(), sqstd_register_iolib(), and thread_wakeup().
SQRESULT sq_settypetag | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQUserPointer | typetag | ||
) |
Definition at line 591 of file sqapi.cpp.
References sq_throwerror().
Referenced by CreateClass(), SqPlus::CreateClass(), declare_stream(), and init_streamclass().
SQRESULT sq_suspendvm | ( | HSQUIRRELVM | v | ) |
Definition at line 975 of file sqapi.cpp.
Referenced by base_suspend().
SQRESULT sq_throwerror | ( | HSQUIRRELVM | v, |
const SQChar * | err | ||
) |
Definition at line 918 of file sqapi.cpp.
Referenced by _blob__get(), _blob__nexti(), _blob__set(), _blob_constructor(), _blob_resize(), _file_constructor(), _regexp_constructor(), _stream_readblob(), _stream_readn(), _stream_seek(), _stream_writeblob(), _stream_writen(), _string_split(), _system_date(), _system_remove(), _system_rename(), _system_system(), array_insert(), array_remove(), array_resize(), array_slice(), array_top(), base_assert(), declare_stream(), default_delegate_tofloat(), default_delegate_tointeger(), math_srand(), ScriptBindings::ScriptPluginWrapper::RegisterPlugin(), sq_arrayinsert(), sq_arraypop(), sq_arrayremove(), sq_arrayresize(), sq_aux_invalidtype(), sq_bindenv(), sq_call(), sq_clear(), sq_deleteslot(), sq_get(), sq_getattributes(), sq_getclosureinfo(), sq_getdefaultdelegate(), sq_getdelegate(), sq_getfunctioninfo(), sq_getinstanceup(), sq_gettypetag(), sq_getweakrefval(), sq_instanceof(), sq_newclass(), sq_newslot(), sq_next(), sq_rawget(), sq_rawset(), sq_readclosure(), sq_resume(), sq_setattributes(), sq_setclassudsize(), sq_setconsttable(), sq_setdelegate(), sq_setfreevariable(), sq_setinstanceup(), sq_setnativeclosurename(), sq_setparamscheck(), sq_setroottable(), sq_settypetag(), sq_wakeupvm(), sq_writeclosure(), sqstd_format(), sqstd_getfile(), sqstd_loadfile(), sqstd_writeclosuretofile(), string_find(), string_slice(), thread_call(), thread_getstatus(), thread_wakeup(), validate_format(), and ScriptBindings::wxArrayString_SetItem().
void sq_tobool | ( | HSQUIRRELVM | v, |
SQInteger | idx, | ||
SQBool * | b | ||
) |
void sq_tostring | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 495 of file sqapi.cpp.
Referenced by base_print(), and default_delegate_tostring().
SQRESULT sq_wakeupvm | ( | HSQUIRRELVM | v, |
SQBool | wakeupret, | ||
SQBool | retval, | ||
SQBool | raiseerror, | ||
SQBool | throwerror | ||
) |
Definition at line 980 of file sqapi.cpp.
References _null_, sq_getvmstate(), and sq_throwerror().
Referenced by thread_wakeup().
void sq_weakref | ( | HSQUIRRELVM | v, |
SQInteger | idx | ||
) |
Definition at line 1166 of file sqapi.cpp.
Referenced by obj_delegate_weakref().
SQRESULT sq_writeclosure | ( | HSQUIRRELVM | v, |
SQWRITEFUNC | w, | ||
SQUserPointer | up | ||
) |
Definition at line 1017 of file sqapi.cpp.
References _GETSAFE_OBJ, NULL, and sq_throwerror().
Referenced by sqstd_writeclosuretofile().