MCPcopy Create free account
hub / github.com/nodejs/nan / Export

Function Export

nan.h:3102–3110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3100//=== Export ==================================================================
3101
3102inline
3103void
3104Export(ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name,
3105 FunctionCallback f) {
3106 HandleScope scope;
3107
3108 Set(target, New<v8::String>(name).ToLocalChecked(),
3109 GetFunction(New<v8::FunctionTemplate>(f)).ToLocalChecked());
3110}
3111
3112//=== Tap Reverse Binding =====================================================
3113

Callers

nothing calls this directly

Calls 3

ToLocalCheckedMethod · 0.80
SetFunction · 0.70
GetFunctionFunction · 0.70

Tested by

no test coverage detected