Skip to content

Commit a37420b

Browse files
authored
Remove embind pre-processor hack. NFC (emscripten-core#23955)
There must have been some point in time when this was necessary, but that it doesn't seem to be anymore.
1 parent 8d20b32 commit a37420b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/libembind_gen.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ var LibraryEmbind = {
139139
}
140140
emittedFunctions.add(signature);
141141
let [args, body] = createJsInvoker(argTypes, !!this.thisType, this.returnType.name !== 'void', this.isAsync);
142-
out.push(
143-
// The ${""} is hack to workaround the preprocessor replacing "function".
144-
`'${signature}': f${""}unction(${args.join(',')}) {\n${body}},`
145-
);
142+
out.push(`'${signature}': function(${args.join(',')}) {\n${body}},`);
146143
}
147144
},
148145
$PointerDefinition: class {

0 commit comments

Comments
 (0)