#ifndef __Throwback_H
#define __Throwback_H

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

#ifdef __cplusplus
extern "C" {
#endif

void Throwback_Start(const char* file);
void Throwback_Stop(void);

#ifdef __CC_NORCROFT
#pragma -v1 // hint to the compiler to check f/s/printf format
#endif
void Throwback_Error(int line, int col, const char* pformat, ...);
#ifdef __CC_NORCROFT
#pragma -v0 // return to default
#endif
void Throwback_VError(int line, int col, const char* pformat, va_list arg);

#ifdef __cplusplus
}
#endif

#endif
