Skip to content

Commit

Permalink
C++ code generation [object Object] error #13
Browse files Browse the repository at this point in the history
  • Loading branch information
niklauslee committed Nov 30, 2015
1 parent f421ed4 commit e22b1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CppCodeGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ define(function (require, exports, module) {
var inputParamStrings = [];
for (i = 0; i < inputParams.length; i++) {
var inputParam = inputParams[i];
inputParamStrings.push(inputParam.type + " " + inputParam.name);
inputParamStrings.push(this.getType(inputParam) + " " + inputParam.name);
docs += "\n@param " + inputParam.name;
}

methodStr += ((returnTypeParam.length > 0) ? returnTypeParam[0].type : "void") + " ";
methodStr += ((returnTypeParam.length > 0) ? this.getType(returnTypeParam[0]) : "void") + " ";

if (isCppBody) {
var t_elem = elem;
Expand Down

0 comments on commit e22b1d0

Please sign in to comment.