diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-11-29 00:46:45 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-30 20:14:24 -0800 |
commit | 3d668262a09ef031003babc14eff9e5d4ac81698 (patch) | |
tree | 90206d42148b96c3a60429315e0cd5f39140446c /node.gyp | |
parent | 976065d9cb88a118c0238a8518a2570b28cce817 (diff) | |
download | android-node-v8-3d668262a09ef031003babc14eff9e5d4ac81698.tar.gz android-node-v8-3d668262a09ef031003babc14eff9e5d4ac81698.tar.bz2 android-node-v8-3d668262a09ef031003babc14eff9e5d4ac81698.zip |
src: move C++ binding/addon related code into node_binding{.h, .cc}
This patch:
- Moves the C++ binding/addon related code out of
node_internals.h/node.cc and into dedicated files
node_binding.h/node_binding.cc, and only puts the code resued
by other files into the header.
- Introduce a node::binding namespace so that code exposed to
other files can be easily recognized.
PR-URL: https://github.com/nodejs/node/pull/24701
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -343,6 +343,7 @@ 'src/module_wrap.cc', 'src/node.cc', 'src/node_api.cc', + 'src/node_binding.cc', 'src/node_buffer.cc', 'src/node_config.cc', 'src/node_constants.cc', @@ -414,6 +415,7 @@ 'src/node.h', 'src/node_api.h', 'src/node_api_types.h', + 'src/node_binding.h', 'src/node_buffer.h', 'src/node_constants.h', 'src/node_context_data.h', |