mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 13:27:24 +00:00
refactor cmake
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* @Author: ekibun
|
||||
* @Date: 2020-09-06 18:32:45
|
||||
* @LastEditors: ekibun
|
||||
* @LastEditTime: 2020-09-24 00:28:11
|
||||
* @LastEditTime: 2020-09-24 22:32:15
|
||||
*/
|
||||
#include "ffi.h"
|
||||
#include <functional>
|
||||
@@ -156,11 +156,13 @@ extern "C"
|
||||
DLLEXPORT void jsFreeValue(JSContext *ctx, JSValue *v)
|
||||
{
|
||||
JS_FreeValue(ctx, *v);
|
||||
delete v;
|
||||
}
|
||||
|
||||
DLLEXPORT void jsFreeValueRT(JSRuntime *rt, JSValue *v)
|
||||
{
|
||||
JS_FreeValueRT(rt, *v);
|
||||
delete v;
|
||||
}
|
||||
|
||||
DLLEXPORT JSValue *jsDupValue(JSContext *ctx, JSValueConst *v)
|
||||
@@ -217,11 +219,6 @@ extern "C"
|
||||
return JS_IsArray(ctx, *val);
|
||||
}
|
||||
|
||||
DLLEXPORT void deleteJSValue(JSValueConst *val)
|
||||
{
|
||||
delete val;
|
||||
}
|
||||
|
||||
DLLEXPORT JSValue *jsGetProperty(JSContext *ctx, JSValueConst *this_obj,
|
||||
JSAtom prop)
|
||||
{
|
||||
|
Reference in New Issue
Block a user