Fix WASM32/Zephyr build.
This commit is contained in:
@@ -1099,7 +1099,7 @@ OBJ_GETTER(InitInstance,
|
|||||||
OBJ_GETTER(InitSharedInstance,
|
OBJ_GETTER(InitSharedInstance,
|
||||||
ObjHeader** location, ObjHeader** localLocation, const TypeInfo* type_info, void (*ctor)(ObjHeader*)) {
|
ObjHeader** location, ObjHeader** localLocation, const TypeInfo* type_info, void (*ctor)(ObjHeader*)) {
|
||||||
#if KONAN_NO_THREADS
|
#if KONAN_NO_THREADS
|
||||||
return InitInstance(location, type_info, ctor);
|
RETURN_RESULT_OF(InitInstance, location, type_info, ctor);
|
||||||
#else
|
#else
|
||||||
ObjHeader* value = *localLocation;
|
ObjHeader* value = *localLocation;
|
||||||
if (value != nullptr) RETURN_OBJ(value);
|
if (value != nullptr) RETURN_OBJ(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user