#include "sega_scl.h" #include "sega_dbg.h"
void err(Uint8 *mess); Uint16 PadData;
main() { SCL_Vdp2Init(); DBG_Initial(&PadData,RGB16_COLOR(31,31,31),0);
.......... / * Program * /
if(......) err ("An error occurred in the ~ function of main ()"); .......... / * Program * /
}
void err(Uint8 *mess) { DBG_Printf ("% s \ n", mess); / * Display message * / DBG_Monitor (); / * Use simple debugging environment * /
}