forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
messaget helper to encapsulate if(debug-verbosity) { complex output }
- Loading branch information
1 parent
e698be9
commit 9717af2
Showing
2 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,10 @@ Author: Daniel Kroening, [email protected] | |
#ifndef CPROVER_UTIL_MESSAGE_H | ||
#define CPROVER_UTIL_MESSAGE_H | ||
|
||
#include <string> | ||
#include <functional> | ||
#include <iosfwd> | ||
#include <sstream> | ||
#include <string> | ||
|
||
#include "invariant.h" | ||
#include "json.h" | ||
|
@@ -333,6 +334,10 @@ class messaget | |
return get_mstream(M_DEBUG); | ||
} | ||
|
||
void conditional_output( | ||
mstreamt &mstream, | ||
const std::function<void(mstreamt &)> &output_generator) const; | ||
|
||
protected: | ||
message_handlert *message_handler; | ||
mutable mstreamt mstream; | ||
|