get-symbol-from-current-process-h
C function to get a symbol from the current process
The information presented below is specific to usage for building with npm
and gyp
.
Installation
Install with npm
:
$ npm install get-symbol-from-current-process-h
Usage
In your binding.gyp
:
'include_dirs': ,
(Just have "<!@(node -p \"require('get-symbol-from-current-process-h').include\")"
somewhere in that list, ok?)
In your C code:
void* sym = get_symbol_from_current_process("foobar");