debug.h

debug.h · 729 B

From the archive i3-server.tgz

Download the archive   « Back to the archive contents

// This file written completely by Tim Johnson (Tim@TimMUD)

varargs void debug(string str, int level){
	if(find_player(DEBUGGER))
	switch(level){
		case DEB_IN:
			message("debug", "%^BOLD%^%^WHITE%^SERVER INCOMING: %^MAGENTA%^"+str+"%^RESET%^\n",
			find_player(DEBUGGER));
			break;
		case DEB_OUT:
			message("debug", "%^BOLD%^%^WHITE%^SERVER OUTGOING: %^CYAN%^"+str+"%^RESET%^\n",
			find_player(DEBUGGER));
			break;
		case DEB_INVALID:
			message("debug", "%^BOLD%^%^WHITE%^SERVER THINKS THIS IS INVALID: %^RED%^"+str+"%^RESET%^\n",
			find_player(DEBUGGER));
			break;
		case DEB_OTHER:
		default:
			message("debug", "%^BOLD%^%^WHITE%^SERVER INFO: %^GREEN%^"+str+"%^RESET%^\n",
			find_player(DEBUGGER));
			break;
	}
}

Site Stats

Snippets: 1791
Codebases: 571