#include "moar.h"
#include <stdarg.h>

void MVM_spesh_debug_printf(MVMThreadContext *tc, const char *format, ...) {
    va_list list;
    va_start(list, format);
    vfprintf(tc->instance->spesh_log_fh, format, list);
    va_end(list);
}

void MVM_spesh_debug_flush(MVMThreadContext *tc) {
    fflush(tc->instance->spesh_log_fh);
}
