aboutsummaryrefslogtreecommitdiff
path: root/src/execute.c
blob: 7da1a1a46e0838574048b52a5c7350a55d6d712f (plain) (blame)
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);
}