{"push_id":2692888325,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"602da6492f278c1345f7f2d82014d9248254476b","before":"a15ea5d7ca1cf0f48ce1f2be62b1cd446a50b06d","commits":[{"sha":"602da6492f278c1345f7f2d82014d9248254476b","author":{"name":"Gabriel Schulhof","email":"48f782b795f0aaf1d96fa1a041257d381b059e00@intel.com"},"message":"src: add context-aware init macro and doc\n\nIntroduces macros `NODE_MODULE_INITIALIZER` which expands to the name\nof the special symbol that process.dlopen() will look for to initialize\nan addon, and `NODE_MODULE_INIT()` which creates the boilerplate for\na context-aware module which can be loaded multiple times via the\nspecial symbol mechanism.\n\nAdditionally, provides an example of using the new macro to construct\nan addon which stores per-addon-instance data in a heap-allocated\nstructure that gets passed to each binding, rather than in a collection\nof global static variables.\n\nRe: https://github.com/nodejs/node/issues/21291#issuecomment-396729727\nPR-URL: https://github.com/nodejs/node/pull/21318\nReviewed-By: Matteo Collina <matteo.collina@gmail.com>\nReviewed-By: James M Snell <jasnell@gmail.com>\nReviewed-By: Ujjwal Sharma <usharma1998@gmail.com>","distinct":true,"url":"https://api.github.com/repos/nodejs/node/commits/602da6492f278c1345f7f2d82014d9248254476b"}]}
{"actor":{"display_login":"gabrielschulhof"}}