pocketlang/src/debug.h

21 lines
397 B
C
Raw Normal View History

/*
* Copyright (c) 2021 Thakee Nathees
* Licensed under: MIT License
*/
#ifndef DEBUG_H
#define DEBUG_H
#include "common.h"
// Dump the value of the [value] without a new line at the end.
2021-05-09 18:28:00 +08:00
void dumpValue(PKVM* vm, Var value);
// Dump opcodes of the given function.
2021-05-09 18:28:00 +08:00
void dumpInstructions(PKVM* vm, Function* func);
// Print stack track.
2021-05-09 18:28:00 +08:00
void reportStackTrace(PKVM* vm);
#endif // DEBUG_H