fixed #2247: Using functions instead of macros to speeding up building for JSB project.
Merge pull request #8 from dumganhar/iss2247-jsb-proxy-refactor

fixed #2247: Using functions instead of macros to speeding up building for JSB projects.