★ PROGRAMMER'S GUIDE ★ Debug support library#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 ("There was an error in the ~ function of main ()"); .......... / * Program * / } void err (Uint8 * mess) { DBG_Printf ("% s \ n", mess); / * Display message * / DBG_Monitor (); / * Make a simple debug environment * }
★ PROGRAMMER'S GUIDE ★ Debug support library