-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug output: improve output performance and design
- Replace the `outputF` function with the `DebugOutput` object 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. - `DebugOutput` comes 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 pop `DebugOutput` objects. This stack would live in the application object. [#8 state:needs_ack responsible:npp-community] Signed-off-by: Jocelyn Legault <jocelynlegault@gmail.com>
- Loading branch information
Showing
3 changed files
with
229 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.