Sha256: 842052a627d79f98464317a6bdbd737a4b480e2346d63784fa18d824137f2b0c
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
#ifndef SASS_DEBUG_H #define SASS_DEBUG_H #include <stdint.h> enum dbg_lvl_t : uint32_t { NONE = 0, TRIM = 1, CHUNKS = 2, SUBWEAVE = 4, WEAVE = 8, EXTEND_COMPOUND = 16, EXTEND_COMPLEX = 32, LCS = 64, EXTEND_OBJECT = 128, ALL = UINT32_MAX }; #ifdef DEBUG #ifndef DEBUG_LVL const uint32_t debug_lvl = UINT32_MAX; #else const uint32_t debug_lvl = (DEBUG_LVL); #endif // DEBUG_LVL #define DEBUG_PRINT(lvl, x) if((lvl) & debug_lvl) { std::cerr << x; } #define DEBUG_PRINTLN(lvl, x) if((lvl) & debug_lvl) { std::cerr << x << std::endl; } #define DEBUG_EXEC(lvl, x) if((lvl) & debug_lvl) { x; } #else // DEBUG #define DEBUG_PRINT(lvl, x) #define DEBUG_PRINTLN(lvl, x) #define DEBUG_EXEC(lvl, x) #endif // DEBUG #endif // SASS_DEBUG
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sassc-1.8.0.pre2 | ext/libsass/src/debug.hpp |
sassc-1.8.0.pre1 | ext/libsass/src/debug.hpp |