1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <posthaste/execute.h> #include <posthaste/lower.h> #include <posthaste/vec.h> void execute() { struct fn *f = find_fn(0); void (*p)(int64_t *globals) = f->arena; struct vec globals = vec_create(sizeof(int64_t)); vec_reserve(&globals, num_globals()); p(globals.buf); vec_destroy(&globals); }