-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how export function using c code #6
Comments
See example in https://github.com/cesanta/mjs/blob/master/mjs.c, search for mjs_init_globals |
thanks for your reply,this is my code ,but result is error: void foo(int x) { void *my_dlsym(void *handle, const char *name) { int main(void) { the function param seems error |
your function needs to take the parameter from the JS stack. |
i want export function using c code ,because ffi using much rom ,but i'm not find method,like this https://github.com/cesanta/v7/blob/master/examples/call_c_from_js/call_c_from_js.c
The text was updated successfully, but these errors were encountered: