From 6fbc0f3c7271db271d74593178f164bb817c4216 Mon Sep 17 00:00:00 2001 From: sunfei Date: Tue, 26 Oct 2021 21:12:28 +0800 Subject: [PATCH] fix hmf build Signed-off-by: sunfei Change-Id: I7b0d7caba999700d3b42c2e7c5f5320cb7d482a5 --- quickjs.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/quickjs.c b/quickjs.c index 8c06b06..2cfc670 100644 --- a/quickjs.c +++ b/quickjs.c @@ -54488,19 +54488,12 @@ JSValue JS_JsonStringify(JSContext *ctx, JSValueConst this_val, int argc, JSValu #endif /* for ace 2.0 */ -/*int JS_CountClassInstances(JSRuntime* rt, uint16_t class_id) +int JS_CountClassInstances(JSRuntime* rt, uint16_t class_id) { int count = 0; - struct list_head* el; - list_for_each(el, &rt->obj_list) - { - JSObject* p = list_entry(el, JSObject, link); - if (p->class_id == class_id) { - count++; - } - } + // TODO: should implement in new version return count; -}*/ +} void *JS_GetOpaqueA(JSValueConst obj, JSClassID* class_ids, size_t class_id_len)