예제 #1
0
파일: TelEngine.cpp 프로젝트: hewu2008/yate
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);
	}