示例#1
0
static void dbg_colorize_func(const char* buf, int level)
{
    const char* col = debugColor(level);
    ::write(2,col,::strlen(col));
    ::write(2,buf,::strlen(buf));
    col = debugColor(-2);
    ::write(2,col,::strlen(col));
}
示例#2
0
	virtual void operator()(int buttonPressed)
	{
		debugColor(DEBUG_BROWN, "Apretado boton :%d\n", buttonPressed);
	}