fixed #2247: Using functions instead of macros to speeding up building for JSB projects. [For not auto binding glue codes].
Merge pull request #2739 from dumganhar/iss2247-proxy-function-develop

fixed #2247: Using functions instead of macros to speeding up building for JSB projects. [For not auto binding glue codes].