소스 검색

Update sqapi.cpp

change comment "pop closure and args" to "pop args" in sq_call(). 

the code clearly pops only args.

the docs say: "the function pops all the parameters and leave the closure in the stack"
zeromus 9 년 전
부모
커밋
997c7aefd2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      squirrel/sqapi.cpp

+ 1 - 1
squirrel/sqapi.cpp

@@ -1164,7 +1164,7 @@ SQRESULT sq_call(HSQUIRRELVM v,SQInteger params,SQBool retval,SQBool raiseerror)
     if(v->Call(v->GetUp(-(params+1)),params,v->_top-params,res,raiseerror?true:false)){
 
         if(!v->_suspended) {
-            v->Pop(params);//pop closure and args
+            v->Pop(params);//pop args
         }
         if(retval){
             v->Push(res); return SQ_OK;