wip - full oop - ignition ok - able to create bootstrapping classes. - able to instantiate objects
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
10
lib/hcl.c
10
lib/hcl.c
@ -172,9 +172,19 @@ int hcl_init (hcl_t* hcl, hcl_mmgr_t* mmgr, const hcl_vmprim_t* vmprim)
|
||||
hcl->tagged_brands[HCL_OOP_TAG_CHAR] = HCL_BRAND_CHARACTER;
|
||||
hcl->tagged_brands[HCL_OOP_TAG_ERROR] = HCL_BRAND_ERROR;
|
||||
|
||||
hcl->tagged_classes[HCL_OOP_TAG_SMOOI] = &hcl->c_small_integer;
|
||||
hcl->tagged_classes[HCL_OOP_TAG_SMPTR] = &hcl->c_small_pointer;
|
||||
hcl->tagged_classes[HCL_OOP_TAG_CHAR] = &hcl->c_character;
|
||||
hcl->tagged_classes[HCL_OOP_TAG_ERROR] = &hcl->c_error;
|
||||
|
||||
hcl->proc_map_free_first = -1;
|
||||
hcl->proc_map_free_last = -1;
|
||||
|
||||
/* hcl_execute() resets 'sp' to -1 when it initializes the initial context.
|
||||
* set it to -1 here in case hcl_gc() is called before a call to hcl_execute() */
|
||||
hcl->sp = -1;
|
||||
hcl->ip = 0;
|
||||
|
||||
if (hcl->vmprim.dl_startup) hcl->vmprim.dl_startup (hcl);
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user