MCPcopy Create free account
hub / github.com/codr7/hacktical-c / deinit_ops

Function deinit_ops

vm/vm.c:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static void deinit_ops(struct hc_vm *vm) {
47 uint8_t *p = vm->code.start;
48
49 hc_vector_do(&vm->ops, _op) {
50 const struct hc_op *op = *(const struct hc_op **)_op;
51 p += sizeof(hc_op_eval_t);
52
53 if (op->deinit) {
54 op->deinit(hc_align(p, op->align));
55 }
56
57 p += op_items(op, p, vm) * vm->code.item_size;
58 }
59
60 hc_vector_deinit(&vm->ops);
61}
62
63void hc_vm_deinit(struct hc_vm *vm) {
64 deinit_stack(vm);

Callers 1

hc_vm_deinitFunction · 0.85

Calls 2

op_itemsFunction · 0.85
hc_vector_deinitFunction · 0.85

Tested by

no test coverage detected