No description provided.
Make it really bare minimum.
Shouldn't initd be init instead? Changing it to init seems to work, but Im not sure if I want to remove the call to NODE_MODULE as the documentation states that:
Note that all Node addons must export an initialization function
Thanks for the feedback and changes ;-)
With regards to this pull request, I have added some inline comments on the commit:
sorry initd was a typo from my side, as far as exporting a init function is concerned i am sure the exposed MACRO NODE_MODULE would de doing something similar to extern "C". The idea is that the module is run by nodejs in a sandbox and by default init is called. But its entirely up to you..if you think NODE_MODULE brings more clarity.
I guess the original aim of this example was to go as minimal as possible, so Im merging the pull request. I'll fix the typo in the function name...