Skip to content

Commit b327ee2

Browse files
committed
return NAPI_MODULE_INITIALIZER_X for backward compat
1 parent 0cfc7d3 commit b327ee2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node_api.h

+5
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ typedef struct napi_module {
160160
#define NAPI_MODULE_X(modname, regfunc, priv, flags) \
161161
NAPI_MODULE_XV(modname, regfunc, NAPI_VERSION, priv, flags)
162162

163+
// Not used. For backward compatibility only.
164+
#define NAPI_MODULE_INITIALIZER_X(base, version) \
165+
NAPI_MODULE_INITIALIZER_X_HELPER(base, version)
166+
#define NAPI_MODULE_INITIALIZER_X_HELPER(base, version) base##version
167+
163168
#define NAPI_CONCAT_HELPER(text1, text2) text1##text2
164169
#define NAPI_CONCAT(text1, text2) NAPI_CONCAT_HELPER(text1, text2)
165170

0 commit comments

Comments
 (0)