Registry / other / dukglue

dukglue

JSON →
library2022-11-08vcpkgunverified

A C++ binding/wrapper library for the Duktape JavaScript interpreter.

vcpkg install dukglue
INSTALL
IMPORT
SIG · DUKGLUE
D
dukglue
othercppv2022-11-08
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dukglue/dukglue.h
#include <dukglue/dukglue.h>

Register a C++ lambda as a JavaScript function and call it.

#include <dukglue/dukglue.h> #include <duktape.h> int main() { duk_context* ctx = duk_create_heap_default(); dukglue_register_function(ctx, [] { return 42; }, "getAnswer"); duk_eval_string(ctx, "getAnswer()"); std::cout << duk_get_int(ctx, -1) << std::endl; duk_destroy_heap(ctx); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2022-11-08latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Meta
1
Amazon
1
Resources

No resource links recorded.

dukglue — pip install dukglue · libregistry