Skip to content

Commit

Permalink
added: support for node v0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
imkira committed May 20, 2014
1 parent 1348c49 commit 3277a87
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 119 deletions.
3 changes: 2 additions & 1 deletion addon.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include <node.h>
#include <nan.h>
#include "protobuf_for_node.h"

void init(v8::Handle<v8::Object> target) {
target->Set(v8::String::New("Schema"), protobuf_for_node::SchemaConstructor());
target->Set(NanNew<v8::String>("Schema"), protobuf_for_node::SchemaConstructor());
}

NODE_MODULE(protobuf_for_node, init)
Expand Down
Loading

0 comments on commit 3277a87

Please sign in to comment.