Newer
Older
Tardis / lang / bytecode.h
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 John Watts and the LuminaSensum contributors

#ifndef BYTECODE_H
#define BYTECODE_H

#include "object.h"
#include "types.h"

// Runs bytecode
// obj is used for OP_SELF
// args is used for OP_GET_ARG
void bytecode_run(
	VmState state, Object obj, const unsigned char *bytecode, Object args);

#endif