You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say i already have an JSON object exported and included into duktap.
Used 'duk_peval_string_noresult(ctx, ...long string)' to include my object.
Question would be how to read a global JS variable within C?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Bare with me please, still new to duktape and C.
I do not see that returning a result.
Say my json object called my_obj
duk_bool_t duk_get_global_string(duk_context *ctx, "my_obj");
Say i already have an JSON object exported and included into duktap.
Used 'duk_peval_string_noresult(ctx, ...long string)' to include my object.
Question would be how to read a global JS variable within C?
Thanks in advance.
The text was updated successfully, but these errors were encountered: