Changeset [e7f66a94384925e3cb68364f04cdb45cc7698adf] by Jocelyn Legault
December 3rd, 2009 @ 05:26 AM
Debug output: improve output performance and design
- Replace the
outputFfunction with theDebugOutputobject that allows to bundle up the outputs and flush them to the debug console only when ready. - It also improves the testability of debug tools that need to output as you now only have to overload the output part of the class.
DebugOutputcomes with its set of tests.-
The existing function guards tests have been updated to reflect the new output method.
-
Future improvements:
- Instead of an extern variable to the global
DebugOutput(yuk) we could implement a DebugOutput stack where we could push and popDebugOutputobjects. This stack would live in the application object.
- Instead of an extern variable to the global
[#8 state:needs_ack responsible:npp-community]
Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
http://github.com/joce/npp-community/commit/e7f66a94384925e3cb68364...
Committed by Jocelyn Legault
- M PowerEditor/src/MISC/Debug/npp_debug.cpp
- M PowerEditor/src/MISC/Debug/npp_debug.h
- M PowerEditor/tests/testNppDebug.cpp
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Notepad++ Community Release