pocketlang/src/pk_debug.h

23 lines
544 B
C
Raw Normal View History

/*
* Copyright (c) 2020-2022 Thakee Nathees
* Copyright (c) 2021-2022 Pocketlang Contributors
2021-06-09 18:42:26 +08:00
* Distributed Under The MIT License
*/
#ifndef PK_DEBUG_H
#define PK_DEBUG_H
#include "pk_internal.h"
#include "pk_value.h"
// Dump opcodes of the given function to the stdout.
void dumpFunctionCode(PKVM* vm, Function* func);
// Dump the all the global values of the script to the stdout.
2021-05-19 02:59:09 +08:00
void dumpGlobalValues(PKVM* vm);
// Dump the current (top most) stack call frame to the stdout.
2021-05-16 15:05:54 +08:00
void dumpStackFrame(PKVM* vm);
#endif // PK_DEBUG_H