KiCad PCB EDA Suite
definitions.h File Reference

Go to the source code of this file.

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 

Macros

#define SWAP(varA, condition, varB)
 Swap the variables if a condition is met. More...
 

Enumerations

enum  KIGFX::RENDER_TARGET {
  KIGFX::TARGET_CACHED = 0 , KIGFX::TARGET_NONCACHED , KIGFX::TARGET_OVERLAY , KIGFX::TARGET_TEMP ,
  KIGFX::TARGETS_NUMBER
}
 RENDER_TARGET: Possible rendering targets. More...
 

Macro Definition Documentation

◆ SWAP

#define SWAP (   varA,
  condition,
  varB 
)
Value:
assert( typeid( varA ).hash_code() == typeid( varB ).hash_code() ); \
\
if( varA condition varB ) \
{ \
decltype( varA ) tmp = varA; \
varA = varB; \
varB = tmp; \
}

Swap the variables if a condition is met.

Definition at line 31 of file definitions.h.