summaryrefslogtreecommitdiff
path: root/src/smt/smt_statistics_registry.h
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-11-08 13:41:21 -0800
committerGitHub <noreply@github.com>2019-11-08 13:41:21 -0800
commite50e990e5a0a85c5e36c6a6b6d8a59c3482b08fb (patch)
tree3b981f3ca75cc788cd934f5d18215c14c51060ce /src/smt/smt_statistics_registry.h
parentcbd86eb4ed8bafc17f28244b746a376a019462f1 (diff)
cmake: Disable C++ GNU extensions. (#3446)
Fixes #971.
Diffstat (limited to 'src/smt/smt_statistics_registry.h')
-rw-r--r--src/smt/smt_statistics_registry.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/smt/smt_statistics_registry.h b/src/smt/smt_statistics_registry.h
index e6932a084..1a0993d1d 100644
--- a/src/smt/smt_statistics_registry.h
+++ b/src/smt/smt_statistics_registry.h
@@ -28,34 +28,4 @@ namespace CVC4 {
*/
StatisticsRegistry* smtStatisticsRegistry();
-
-/**
- * To use a statistic, you need to declare it, initialize it in your
- * constructor, register it in your constructor, and deregister it in
- * your destructor. Instead, this macro does it all for you (and
- * therefore also keeps the statistic type, field name, and output
- * string all in the same place in your class's header. Its use is
- * like in this example, which takes the place of the declaration of a
- * statistics field "d_checkTimer":
- *
- * KEEP_STATISTIC(TimerStat, d_checkTimer, "theory::uf::checkTime");
- *
- * If any args need to be passed to the constructor, you can specify
- * them after the string.
- *
- * The macro works by creating a nested class type, derived from the
- * statistic type you give it, which declares a registry-aware
- * constructor/destructor pair.
- */
-#define KEEP_STATISTIC(_StatType, _StatField, _StatName, _CtorArgs...) \
- struct Statistic_##_StatField : public _StatType { \
- Statistic_##_StatField() : _StatType(_StatName, ## _CtorArgs) { \
- smtStatisticsRegistry()->registerStat(this); \
- } \
- ~Statistic_##_StatField() { \
- smtStatisticsRegistry()->unregisterStat(this); \
- } \
- } _StatField
-
-
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback