Print the content of a trie to the server for debug
Hi there!
This can turn out to be very useful when dealing with nested handles. It prints the content of a trie to the server console. Code:
stock void DEBUG_PrintMapStructure(Handle nh_map, char[] ns_mapnametoshow, char[] ns_prefix) the output Code:
[DBScanner.inc] Analyzing Map: "DBTable"DEBUG_PrintMapStructure(0, "VOID TEST", "[DBScanner.inc]"); Code:
[DBScanner.inc] Invalid map Handle: "VOID TEST" (0) |
Re: Print the content of a trie to the server for debug
So you gave us this snippet to make us all smile,
but all that I see is bad coding style! There's spaghetti so much and the handle's not closed, the idea may be great but this snippet is hosed! |
Re: Print the content of a trie to the server for debug
Quote:
hahahahahahahahahhaha |
Re: Print the content of a trie to the server for debug
Fixed.
|
| All times are GMT -4. The time now is 18:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.