nanowasm/private_include/interp.h

23 lines
430 B
C

#ifndef INTERP_H
#define INTERP_H
#include <nanowasm/nw.h>
#include <opcodes.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
struct interp_set
{
const enum opcode *opcodes;
size_t n;
};
extern const struct interp_set interp_initexpr_set;
int interp_run(struct nw_interp *i);
int interp_run_limited(struct nw_interp *i, const struct interp_set *ops);
int interp_check_opcode(uint8_t op, FILE *f);
#endif