Revert "add some stack-condition error checking to sqstdlib registration routines"

This reverts part of commit b9fc931752.
This commit is contained in:
zeromus
2016-04-21 21:52:13 -05:00
parent b9fc931752
commit 160184d2dd
4 changed files with 0 additions and 8 deletions

View File

@ -88,8 +88,6 @@ static const SQRegFunction mathlib_funcs[] = {
SQRESULT sqstd_register_mathlib(HSQUIRRELVM v)
{
if(sq_gettype(v,-1) != OT_TABLE)
return sq_throwerror(v,_SC("table expected"));
SQInteger i=0;
while(mathlib_funcs[i].name!=0) {
sq_pushstring(v,mathlib_funcs[i].name,-1);