我的代码是这样的
#include “…/jswrapper/SeApi.h”
se::ScriptEngine::getInstance()->evalString(buf);
ios下运行正常
安卓下报错:
[FATAL ERROR] location: v8::HandleScope::CreateHandle(), message: Cannot create a handle without a HandleScope
我查了下论坛,好像说要加一个
se:AutoHandleScope hs;
我把代码改成
se:AutoHandleScope hs;
se::ScriptEngine::getInstance()->evalString(buf);
编译出现未定义:
error: ‘AutoHandleScope’ was not declared in this scope
se:AutoHandleScope hs;
请问是不是前面要include autohandlescore的头文件
我搜了一下又好多AutoHandleScope
jsc, sm, v8
请问应该怎么改,