#ifndef SAT_DEBUG_H
#define SAT_DEBUG_H

#include <SGL.H>
#include "../satcom_lib/saturn/sc_saturn.h"

/*
 * if debug is defined, all logs are written to screen
 * in a crappy console or on the screen for a while
 */
#define DEBUG


#include <stdarg.h>



/*
 * The functions to use in your program :
 *
 * LogOut(("truc=%d", truc))
 * ReLogOut(("machin"))
 * Error(("bidule"))
 *
 */
#ifdef DEBUG

/* Display text un the middle of the screen for a while */
void disp_Error(char* text);
/* Display text in console */
void LogOut_internal(char *string, ...);

#define LogOut(string, ...) LogOut_internal(string, __VA_ARGS__)
#define ReLogOut(string) LogOut_internal(string)
#define Error(x) Error_internal(x);

#else

#define LogOut(string, ...) {;}
#define ReLogOut(x) {;}
#define Error(x) {;}

#endif //DEBUG


#endif //SAT_DEBUG_H
