view codeDoc/debugCodes.txt @ 116:5ee69b3ed9c9

Partial implementation of infinite widget recursion protection; some cleanup. Implemented recursion protection which only allowed unsafe widgets to be instantiated once; realised this was far too restrictive (multiple sibling instances are needed) and a check against parent widgets would be needed. Could be implemented by passing widgets a reference to parents. Removed ButtonWidget aka First interactible widget.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 21 Dec 2008 12:03:50 +0000
parents 56c0ddd90193
children 9f035cd139c6
line wrap: on
line source

Copyright © 2007-2008 Diggory Hardy
License: GNU General Public License version 2 or later (see COPYING)


General use of debug statement:
Non-critical assertions (i.e. for bug-tracking, usually for conditions which _should_ be guaranteed by the code).
Logging of all trace messages.


Debug codes currently used in mde:

- code -                - purpose -
mdeUnitTest             Compile in unittest code (including extra imports, and a few other bits outside the unittest itself).
drawGlyphCache          Draw the font texture in the upper-left corner of the screen, with a pretty background.
mdeWidgets              Log trace messages for the creation of all widgets.
SDLCalls		Log a message before some SDL calls.