From: Tobias Markus Date: Sun, 22 Mar 2015 00:05:35 +0000 (+0100) Subject: Fix for syntax errors X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a240004ea83eeb5615ce93488f374ece7b1c3342;p=supertux.git Fix for syntax errors --- diff --git a/external/squirrel/patches/patch5.patch b/external/squirrel/patches/patch5.patch index af869f5d6..ea7e207c6 100644 --- a/external/squirrel/patches/patch5.patch +++ b/external/squirrel/patches/patch5.patch @@ -20,14 +20,14 @@ index 1b7a08f..af866a8 100644 sq_newclosure(v,f.f,0); sq_setparamscheck(v,f.nparamscheck,f.typemask); - sq_newslot(v,-3,SQFalse); -+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)) ++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))) + { + throw "Failed to create new table slot for stream_method"; + } i++; } - sq_newslot(v,-3,SQFalse); -+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)) ++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))) + { + throw "Failed to create new table slot for stream"; + } @@ -39,9 +39,9 @@ index 1b7a08f..af866a8 100644 i++; } - sq_newslot(v,-3,SQFalse); -+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)) ++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))) + { -+ throw "Failed to create new table slot" ++ throw "Failed to create new table slot"; + } sq_pop(v,1); @@ -51,7 +51,7 @@ index 1b7a08f..af866a8 100644 sq_setparamscheck(v,f.nparamscheck,f.typemask); sq_setnativeclosurename(v,-1,f.name); - sq_newslot(v,-3,SQFalse); -+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)) ++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))) + { + throw "Failed to create new table slot for global"; + } @@ -67,9 +67,9 @@ index 40f78d7..b5359b6 100644 sq_setparamscheck(v,systemlib_funcs[i].nparamscheck,systemlib_funcs[i].typemask); sq_setnativeclosurename(v,-1,systemlib_funcs[i].name); - sq_newslot(v,-3,SQFalse); -+ if(SQ_FAILED(sq_newslot(v,-3,SQFalse)) ++ if(SQ_FAILED(sq_newslot(v,-3,SQFalse))) + { -+ // Could not create table slot ++ throw "Failed to create new table slot for systemlib_func"; + } i++; }