import "js_manual_conversions.h"
ScriptingCore* sc = ScriptingCore::getInstance();
JSContext* cx = sc->getGlobalContext();
jsval outVal;
sc->evalString("cc.find('Game').getComponent('Player').onBeforeWillEnterForeground();", &outVal);
int val;
jsval_to_int(cx,outVal,&val);//为什么提示错误:no matching function to call jsval_to_int呢?