RUNTIME: fix of InitInstance constructor parameter
This commit is contained in:
committed by
vvlevchenko
parent
bab2b8bc3f
commit
de493313f8
@@ -101,7 +101,7 @@ ObjHeader* AllocStringInstance(
|
|||||||
|
|
||||||
ObjHeader* InitInstance(
|
ObjHeader* InitInstance(
|
||||||
ObjHeader** location, const TypeInfo* type_info, PlacementHint hint,
|
ObjHeader** location, const TypeInfo* type_info, PlacementHint hint,
|
||||||
void (*ctor)(ObjHeader*)) {
|
ObjHeader* (*ctor)(ObjHeader*)) {
|
||||||
ObjHeader* sentinel = reinterpret_cast<ObjHeader*>(1);
|
ObjHeader* sentinel = reinterpret_cast<ObjHeader*>(1);
|
||||||
ObjHeader* value;
|
ObjHeader* value;
|
||||||
// Wait until other initializers.
|
// Wait until other initializers.
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ ObjHeader* AllocStringInstance(PlacementHint hint,
|
|||||||
const char* data, uint32_t length);
|
const char* data, uint32_t length);
|
||||||
ObjHeader* InitInstance(
|
ObjHeader* InitInstance(
|
||||||
ObjHeader** location, const TypeInfo* type_info, PlacementHint hint,
|
ObjHeader** location, const TypeInfo* type_info, PlacementHint hint,
|
||||||
void (*ctor)(ObjHeader*));
|
ObjHeader* (*ctor)(ObjHeader*));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user