We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isSelf
1 parent 08564a7 commit 13c6336Copy full SHA for 13c6336
1 file changed
generate/scripts/helpers.js
@@ -262,7 +262,9 @@ var Helpers = {
262
// itself and determine if this function goes on the prototype
263
// or is a constructor method.
264
arg.isReturn = arg.name === "out" || (utils.isDoublePointer(arg.type) && normalizedType == typeDef.cType);
265
- arg.isSelf = utils.isPointer(arg.type) && normalizedType == typeDef.cType;
+ arg.isSelf = utils.isPointer(arg.type) &&
266
+ normalizedType == typeDef.cType &&
267
+ _.every(allArgs, function(_arg) { return !_arg.isSelf; });
268
269
if (arg.isReturn && fnDef.return && fnDef.return.type === "int") {
270
fnDef.return.isErrorCode = true;
0 commit comments