Loading...
Searching...
No Matches
Go to the documentation of this file.
24#define L1_DYNAMIC_CAST static_cast
28#define L1_DYNAMIC_CAST dynamic_cast
32#if 1 && defined( __GNUC__ ) && __GNUC__ - 0 >= 3
33#define ISLIKELY( x ) __builtin_expect( !!( x ),1 )
34#define ISUNLIKELY( x ) __builtin_expect( !!( x ),0 )
36#define ISLIKELY( x ) ( x )
37#define ISUNLIKELY( x ) ( x )
40#if defined( NDEBUG ) || defined( L1_NO_ASSERT )
41#define L1_ASSERT(v, msg)
44#define L1_ASSERT(v, msg) \
46 std::cerr << __FILE__ << ":" << __LINE__ << " assertion failed: " \
47 << #v << " = " << (v) << "\n" << msg << std::endl; \
50#define L1_assert(v) assert(v)