summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-03-08 21:43:45 +0000
committerMorgan Deters <mdeters@gmail.com>2011-03-08 21:43:45 +0000
commit5fbb341a673ec5fa42f260bb137f423ac2aea324 (patch)
tree2e33f2c4bec2c2268c2f02606accd3fca84e7a53 /src/include
parentdff18e8f9b2490602226317ebdb9fad4e0ccead9 (diff)
Clean up Theory base class as per code review bug #60; also fixes to CodeTimer statistic, and adding a CodeTimer to TheoryEngine::EngineOutputChannel::newFact() for investigation into (possible) slow or redundant theory registration.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cvc4_public.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/cvc4_public.h b/src/include/cvc4_public.h
index 2ac1facb0..a2db90457 100644
--- a/src/include/cvc4_public.h
+++ b/src/include/cvc4_public.h
@@ -68,13 +68,16 @@
#ifdef __GNUC__
# define CVC4_UNUSED __attribute__((unused))
+# define CVC4_NORETURN __attribute__ ((noreturn))
+# define CVC4_CONST_FUNCTION __attribute__ ((const))
#else /* ! __GNUC__ */
# define CVC4_UNUSED
+# define CVC4_NORETURN
+# define CVC4_CONST_FUNCTION
#endif /* __GNUC__ */
#define EXPECT_TRUE(x) __builtin_expect( (x), true )
#define EXPECT_FALSE(x) __builtin_expect( (x), false )
-#define CVC4_NORETURN __attribute__ ((noreturn))
#ifndef NULL
# define NULL ((void*) 0)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback