Skip to content

Commit

Permalink
return NAPI_MODULE_INITIALIZER_X for backward compat
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz committed Jan 20, 2023
1 parent 0cfc7d3 commit b327ee2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ typedef struct napi_module {
#define NAPI_MODULE_X(modname, regfunc, priv, flags) \
NAPI_MODULE_XV(modname, regfunc, NAPI_VERSION, priv, flags)

// Not used. For backward compatibility only.
#define NAPI_MODULE_INITIALIZER_X(base, version) \
NAPI_MODULE_INITIALIZER_X_HELPER(base, version)
#define NAPI_MODULE_INITIALIZER_X_HELPER(base, version) base##version

#define NAPI_CONCAT_HELPER(text1, text2) text1##text2
#define NAPI_CONCAT(text1, text2) NAPI_CONCAT_HELPER(text1, text2)

Expand Down

0 comments on commit b327ee2

Please sign in to comment.