diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-11-05 16:20:53 +0300 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2018-12-26 19:18:54 +0300 |
commit | d8ac55a0125597d60a1207d6e1873dad9221966b (patch) | |
tree | 4fa000b37c56bf917dc5434c12f89dd989f2c0d9 /test/addons-napi | |
parent | 5dfc1bb46c0983aa8b10bc1d380d852ae7aff92c (diff) |
test: use NULL instead of 0 in common.h
This commit updates the macros in test/addons-napi/common.h to use NULL
instead of 0. This is very minor, but I had to look twice while going
through the code and finding what the macro was doing and comparing
with the struct definition. Using NULL makes it a little clearer I
think.
PR-URL: https://github.com/nodejs/node/pull/24104
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/addons-napi')
-rw-r--r-- | test/addons-napi/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/addons-napi/common.h b/test/addons-napi/common.h index 422418ced49..b16f944771c 100644 --- a/test/addons-napi/common.h +++ b/test/addons-napi/common.h @@ -54,7 +54,7 @@ NAPI_CALL_BASE(env, the_call, NAPI_RETVAL_NOTHING) #define DECLARE_NAPI_PROPERTY(name, func) \ - { (name), 0, (func), 0, 0, 0, napi_default, 0 } + { (name), NULL, (func), NULL, NULL, NULL, napi_default, NULL } #define DECLARE_NAPI_GETTER(name, func) \ - { (name), 0, 0, (func), 0, 0, napi_default, 0 } + { (name), NULL, NULL, (func), NULL, NULL, napi_default, NULL } |