$ cnpm install get-symbol-from-current-process-h
The information presented below is specific to usage for building with npm and gyp.
Install with npm:
$ npm install get-symbol-from-current-process-h
In your binding.gyp:
'include_dirs': ["<!@(node -p \"require('get-symbol-from-current-process-h').include\")"],
(Just have "<!@(node -p \"require('get-symbol-from-current-process-h').include\")" somewhere in that list, ok?)
In your C code:
#include <get-symbol-from-current-process.h>
void* sym = get_symbol_from_current_process("foobar");
Copyright 2013 - present © cnpmjs.org | Home |