فهرست منبع

Insert TS function var names in the precompile step, allowing unreferenced parameters to be used

James Urquhart 11 سال پیش
والد
کامیت
b991adb033
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      Engine/source/console/astNodes.cpp

+ 3 - 0
Engine/source/console/astNodes.cpp

@@ -1831,7 +1831,10 @@ U32 FunctionDeclStmtNode::precompileStmt(U32)
 
    argc = 0;
    for(VarNode *walk = args; walk; walk = (VarNode *)((StmtNode*)walk)->getNext())
+   {
+      precompileIdent(walk->varName);
       argc++;
+   }
    
    CodeBlock::smInFunction = true;