Create internal bindings to get C++-implemented functions in JS, (imported from NodeJS internal design decisions) See function declarations in python/pythonmonkey/builtin_modules/internal-binding.d.ts.
More...
#include "include/internalBinding.hh"
#include "include/pyTypeFactory.hh"
#include <jsapi.h>
#include <js/String.h>
#include <Python.h>
Create internal bindings to get C++-implemented functions in JS, (imported from NodeJS internal design decisions) See function declarations in python/pythonmonkey/builtin_modules/internal-binding.d.ts.
- Author
- Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work)
- Copyright
- Copyright (c) 2023 Distributive Corp.
◆ createInternalBinding()
JSFunction * createInternalBinding |
( |
JSContext * |
cx | ) |
|
Create the JS internalBinding
function.
◆ createInternalBindingsForNamespace()
JSObject * createInternalBindingsForNamespace |
( |
JSContext * |
cx, |
|
|
JSFunctionSpec * |
methodSpecs |
|
) |
| |
◆ getInternalBindingPyFn()
PyObject * getInternalBindingPyFn |
( |
JSContext * |
cx | ) |
|
◆ getInternalBindingsByNamespace()
JSObject * getInternalBindingsByNamespace |
( |
JSContext * |
cx, |
|
|
JSLinearString * |
namespaceStr |
|
) |
| |