#ifndef SNUVI_ERROR_H #define SNUVI_ERROR_H #ifdef __cplusplus extern "C" { #endif #include typedef struct Error { int line; char message[256]; } Error; void eInitError(Error* e, int line, const char* format, ...); void eInitSuccess(Error* e); bool eHasError(const Error* e); #ifdef __cplusplus } #endif #endif