-
Notifications
You must be signed in to change notification settings - Fork 595
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
Is it addon must put one parameter at least? #159
Comments
hi @webbery I'm not sure if the example of function arguments may help?: https://github.com/nodejs/node-addon-examples/tree/master/2_function_arguments/node-addon-api |
@helio-frota Thanks. That's not I need. I need function like this:
But in order to work, I must call it like this:
|
That's is weird, I'm still learning n-api btw. I have a working example here: https://github.com/helio-frota/sandwich/ I hope this help in some way |
@webbery is your code public? |
Here is my code: |
Hi,
I got this error when I passed none paramter in my addon function:
But if I put one parameter it was work.
My C++ code like this:
I google none of infomation about how to pass none parameter in my function. If you have any link, please tell me.
Thank you.
The text was updated successfully, but these errors were encountered: