Skip to content

Commit

Permalink
Add a swig macro to register node.js extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver7654 committed Aug 31, 2013
1 parent 4fea3a4 commit 213c107
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lib/javascript/v8/node.i
@@ -0,0 +1,7 @@
%define %node(moduleName)
%insert("post-init") %{
extern "C" {
NODE_MODULE(moduleName, moduleName ## _initialize)
}
%}
%enddef

0 comments on commit 213c107

Please sign in to comment.