(name, argCount, rawArgTypesAddr, signature, rawInvoker, fn)
| 3309 | } |
| 3310 | |
| 3311 | function __embind_register_function(name, argCount, rawArgTypesAddr, signature, rawInvoker, fn) { |
| 3312 | var argTypes = heap32VectorToArray(argCount, rawArgTypesAddr); |
| 3313 | name = readLatin1String(name); |
| 3314 | |
| 3315 | rawInvoker = embind__requireFunction(signature, rawInvoker); |
| 3316 | |
| 3317 | exposePublicSymbol(name, function() { |
| 3318 | throwUnboundTypeError('Cannot call ' + name + ' due to unbound types', argTypes); |
| 3319 | }, argCount - 1); |
| 3320 | |
| 3321 | whenDependentTypesAreResolved([], argTypes, function(argTypes) { |
| 3322 | var invokerArgsArray = [argTypes[0] /* return value */, null /* no class 'this'*/].concat(argTypes.slice(1) /* actual params */); |
| 3323 | replacePublicSymbol(name, craftInvokerFunction(name, invokerArgsArray, null /* no class 'this'*/, rawInvoker, fn), argCount - 1); |
| 3324 | return []; |
| 3325 | }); |
| 3326 | } |
| 3327 | |
| 3328 | function integerReadValueFromPointer(name, shift, signed) { |
| 3329 | // integers are quite common, so generate very specialized functions |
nothing calls this directly
no test coverage detected