sq_newclosure(v,f.f,0);\r
sq_setparamscheck(v,f.nparamscheck,f.typemask);\r
- sq_newslot(v,-3,SQFalse);\r
-+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
+ {\r
+ throw "Failed to create new table slot for stream_method";\r
+ }\r
i++;\r
}\r
- sq_newslot(v,-3,SQFalse);\r
-+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
+ {\r
+ throw "Failed to create new table slot for stream";\r
+ }\r
i++;\r
}\r
- sq_newslot(v,-3,SQFalse);\r
-+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
+ {\r
-+ throw "Failed to create new table slot"\r
++ throw "Failed to create new table slot";\r
+ }\r
sq_pop(v,1);\r
\r
sq_setparamscheck(v,f.nparamscheck,f.typemask);\r
sq_setnativeclosurename(v,-1,f.name);\r
- sq_newslot(v,-3,SQFalse);\r
-+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
+ {\r
+ throw "Failed to create new table slot for global";\r
+ }\r
sq_setparamscheck(v,systemlib_funcs[i].nparamscheck,systemlib_funcs[i].typemask);\r
sq_setnativeclosurename(v,-1,systemlib_funcs[i].name);\r
- sq_newslot(v,-3,SQFalse);\r
-+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
+ {\r
-+ // Could not create table slot\r
++ throw "Failed to create new table slot for systemlib_func";\r
+ }\r
i++;\r
}\r