Merge replayed as done by c778d16abed35829b103d607a53c8f88e3b2d595
This commit is contained in:
parent
a190288e66
commit
868803ce2a
9 changed files with 179 additions and 66 deletions
|
|
@ -1,15 +1,12 @@
|
|||
%insert("init") %{
|
||||
%insert("begin") %{
|
||||
#ifndef BUILDING_NODE_EXTENSION
|
||||
#define BUILDING_NODE_EXTENSION
|
||||
#endif
|
||||
|
||||
#include <node.h>
|
||||
%}
|
||||
|
||||
%define %node(moduleName)
|
||||
%insert("post-init") %{
|
||||
extern "C" {
|
||||
NODE_MODULE(moduleName, moduleName ## _initialize)
|
||||
}
|
||||
%insert("runtime") %{
|
||||
// we are including relative to the src folder because of issues
|
||||
// with other files which might be named "node.h"
|
||||
#include <src/node.h>
|
||||
%}
|
||||
%enddef
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue