joyent/node — pull request #2342 by shtylman (2011-12-16 14:35:53+00:00)
Title: add node::SetMethod and node::SetPrototypeMethod

See https://github.com/joyent/node/pull/2122 for more details about why this is better than using defines.

I also left NODE_SET_PROTOTYPE_METHOD and NODE_SET_METHOD as defines:

#define NODE_SET_METHOD node::SetMethod
#define NODE_SET_PROTOTYPE_METHOD node::SetPrototypeMethod

Per the discussion before for people that might have code with #ifdef NODE_SET_METHOD

This pull request also updates the codebase and docs to use the new functions.