fixed the missing prototype defintion of hcl_instantiate()
This commit is contained in:
parent
ff6f895c31
commit
a61f6f5f47
@ -1061,6 +1061,13 @@ hcl_oop_t hcl_allocwordobj (
|
|||||||
hcl_oow_t len
|
hcl_oow_t len
|
||||||
);
|
);
|
||||||
|
|
||||||
|
hcl_oop_t hcl_instantiate (
|
||||||
|
hcl_t* hcl,
|
||||||
|
hcl_oop_class_t _class,
|
||||||
|
const void* vptr,
|
||||||
|
hcl_oow_t vlen
|
||||||
|
);
|
||||||
|
|
||||||
/* ========================================================================= */
|
/* ========================================================================= */
|
||||||
/* sym.c */
|
/* sym.c */
|
||||||
/* ========================================================================= */
|
/* ========================================================================= */
|
||||||
|
@ -881,7 +881,6 @@ static hcl_pfrc_t pf_object_new (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
|
|||||||
obj = hcl_instantiate(hcl, class_, HCL_NULL, 0);
|
obj = hcl_instantiate(hcl, class_, HCL_NULL, 0);
|
||||||
if (HCL_UNLIKELY(!obj)) return HCL_PF_FAILURE;
|
if (HCL_UNLIKELY(!obj)) return HCL_PF_FAILURE;
|
||||||
|
|
||||||
|
|
||||||
HCL_STACK_SETRET (hcl, nargs, obj);
|
HCL_STACK_SETRET (hcl, nargs, obj);
|
||||||
return HCL_PF_SUCCESS;
|
return HCL_PF_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user