Sha256: 07ed5d5a8141fac56631b33400ee313406baf41b47a48b988a11ea312bbb5889

Contents?: true

Size: 745 Bytes

Versions: 17

Compression:

Stored size: 745 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

17 entries across 17 versions & 2 rubygems

Version Path
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/debug.hpp
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/debug.hpp
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/debug.hpp
sassc-1.7.1 ext/libsass/debug.hpp
sassc-1.7.0 ext/libsass/debug.hpp
sassc-1.6.0 ext/libsass/debug.hpp
sassc-1.5.1 ext/libsass/debug.hpp
sassc-1.5.0 ext/libsass/debug.hpp
sassc-1.4.0 ext/libsass/debug.hpp
sassc-1.3.0 ext/libsass/debug.hpp
sassc-1.2.0 ext/libsass/debug.hpp
sassc-1.1.2 ext/libsass/debug.hpp
sassc-1.1.1 ext/libsass/debug.hpp
sassc-1.1.0 ext/libsass/debug.hpp
sassc-1.0.0 ext/libsass/debug.hpp
sassc-0.0.11 ext/libsass/debug.hpp
sassc-0.0.10 ext/libsass/debug.hpp