]> git.lyx.org Git - features.git/blobdiff - src/support/debug.h
FindAdv: Amend d09f5ce1: Added new debug level :findverbose
[features.git] / src / support / debug.h
index 681ef3fbafa598e05e7b841f090c2b7c8d2d84c2..2306524ca195917197c7ba7a4dd9df73ff18a963 100644 (file)
@@ -32,12 +32,15 @@ typedef basic_streambuf<char, char_traits<char> > streambuf;
 #endif
 
 
+// Make sure at compile time that sizeof(unsigned long long) >= 8
+typedef char p__LINE__[ (sizeof(unsigned long long) > 7) ? 1 : -1];
+
 namespace lyx {
 
 ///  This is all the different debug levels that we have.
 namespace Debug {
        ///
-       typedef uint64_t base_type;
+       typedef unsigned long long base_type;
        enum Type : base_type {
                ///
                NONE = 0,
@@ -106,7 +109,7 @@ namespace Debug {
                ///
                FINDVERBOSE= (1u << 31),
                ///
-               DEBUG      = (1L << 32),
+               DEBUG      = (1ULL << 32),
                ///
                ANY = 0x1ffffffff
        };