aboutsummaryrefslogtreecommitdiffstats
path: root/stack.h
blob: 18821a18ca9ef3c32fdcc50d6e93cdf1f293da57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef STACK_H_
#define STACK_H_

#include "parser.h"

void ipush(interpreter *it, void *v);
void *ipop(interpreter *it);
void ipopm(interpreter *it, uint32_t count);

variable *igetarg(interpreter *interp, uint32_t index);
const char *igetarg_string(interpreter *interp, uint32_t index);
float igetarg_number(interpreter *interp, uint32_t index);

#define igetarg_integer(i, x) (int)igetarg_number(i, x)

#endif // STACK_H_