joyent/node — pull request #2122 by shtylman (2011-11-15 19:45:53+00:00)
Title: turn NODE_SET_METHOD and NODE_SET_PROTOTYPE_METHOD into functions

The defines cannot be used if the callback is a templated and
has multiple template arguments. The comma separating the arguments
breaks the preprocessor argument handling. Using a templated function
is clearer and more in line with c++.

Something like the following does not with when using defines.
NODE_SET_PROTOTYPE_METHOD(target, "comma_break", some_method);