Skip to content

Commit 13c6336

Browse files
committed
No longer mark multiple arguments as isSelf
The old isSelf condition didn't account for cases like .compare or .equal
1 parent 08564a7 commit 13c6336

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

generate/scripts/helpers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ var Helpers = {
262262
// itself and determine if this function goes on the prototype
263263
// or is a constructor method.
264264
arg.isReturn = arg.name === "out" || (utils.isDoublePointer(arg.type) && normalizedType == typeDef.cType);
265-
arg.isSelf = utils.isPointer(arg.type) && normalizedType == typeDef.cType;
265+
arg.isSelf = utils.isPointer(arg.type) &&
266+
normalizedType == typeDef.cType &&
267+
_.every(allArgs, function(_arg) { return !_arg.isSelf; });
266268

267269
if (arg.isReturn && fnDef.return && fnDef.return.type === "int") {
268270
fnDef.return.isErrorCode = true;

0 commit comments

Comments
 (0)