-
-
Save vroad/64a6b9523bae5f559678 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <node.h> | |
#include <stdio.h> | |
using namespace v8; | |
void Exit(void* arg) { | |
printf("node::AtExit called\n"); | |
} | |
void Initialize(Handle<Object> exports) { | |
node::AtExit(Exit); | |
} | |
NODE_MODULE(binding, Initialize) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"targets": [ | |
{ | |
"target_name": "binding", | |
"sources": [ | |
"binding.cc" | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var binding = require('./build/Release/binding'); | |
process.exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment