mirror of
https://github.com/albertodemichelis/squirrel.git
synced 2026-01-13 23:18:43 +01:00
add some stack-condition error checking to sqstdlib registration routines and to sqstd_dofile
This commit is contained in:
@ -132,6 +132,8 @@ static const SQRegFunction systemlib_funcs[]={
|
||||
|
||||
SQInteger sqstd_register_systemlib(HSQUIRRELVM v)
|
||||
{
|
||||
if(sq_gettype(v,-1) != OT_TABLE)
|
||||
return sq_throwerror(v,_SC("table expected"));
|
||||
SQInteger i=0;
|
||||
while(systemlib_funcs[i].name!=0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user