Skip to content

Commit

Permalink
napi: use NODE_GYP_MODULE_NAME in examples
Browse files Browse the repository at this point in the history
PR-URL: nodejs#11
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
watson authored and mhdawson committed Mar 1, 2018
1 parent a18255d commit 09885f5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions 1_hello_world/napi/hello.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ napi_value Init(napi_env env, napi_value exports) {
return exports;
}

NAPI_MODULE(hello, Init)

NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion 2_function_arguments/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ napi_value Init(napi_env env, napi_value exports) {
return exports;
}

NAPI_MODULE(addon, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion 3_callbacks/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ napi_value Init(napi_env env, napi_value exports) {
return new_exports;
}

NAPI_MODULE(addon, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion 4_object_factory/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ napi_value Init(napi_env env, napi_value exports) {
return new_exports;
}

NAPI_MODULE(addon, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
3 changes: 1 addition & 2 deletions 5_function_factory/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ napi_value Init(napi_env env, napi_value exports) {
return new_exports;
}

NAPI_MODULE(addon, Init)

NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion 6_object_wrap/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ napi_value Init(napi_env env, napi_value exports) {
return MyObject::Init(env, exports);
}

NAPI_MODULE(addon, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion 7_factory_wrap/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ napi_value Init(napi_env env, napi_value exports) {
return new_exports;
}

NAPI_MODULE(addon, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
2 changes: 1 addition & 1 deletion 8_passing_wrapped/napi/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ napi_value Init(napi_env env, napi_value exports) {
return exports;
}

NAPI_MODULE(addon, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)

0 comments on commit 09885f5

Please sign in to comment.