diff options
Diffstat (limited to 'lib/common_impl.hpp')
-rw-r--r-- | lib/common_impl.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/common_impl.hpp b/lib/common_impl.hpp index c6c3e93..e34e999 100644 --- a/lib/common_impl.hpp +++ b/lib/common_impl.hpp @@ -25,7 +25,7 @@ #define HERE() std::cerr << __FILE__ << ":" << __LINE__ << std::endl << std::flush; #define VAR(x) std::cerr << #x << " = " << (x) << std::endl << std::flush; -#define ASSERT(x) if(not (x)){HERE(); std::cerr << "assert failed: " << #x << std::endl << std::flush;} +#define ASSERT(x) if(not (x)){std::cerr << "ASSERT FAIL " << __FILE__ << ":" << __LINE__ << "\n\t" << #x << std::endl << std::flush;} static inline unsigned long myulround(const double x) { @@ -56,9 +56,11 @@ struct TopBlockMessage { enum { + ALLOCATE, ACTIVE, INERT, HINT, + TOKEN_TIME, } what; size_t hint; Token token; @@ -69,6 +71,11 @@ struct CheckTokensMessage //empty }; +struct SelfKickMessage +{ + //empty +}; + struct BufferReturnMessage { size_t index; |