fiber
Loading...
Searching...
No Matches
definitions.hpp File Reference

Go to the source code of this file.

Macros

#define FIBER_ASSUME(cond)
 
#define FIBER_FUNCTION_SIGNATURE   __func__
 
#define FIBER_LIKELY   if(condition)
 
#define FIBER_UNLIKELY   if(condition)
 
#define FIBER_USE_UNUSED(value)
 
#define FIBER_WEAK
 

Detailed Description

Useful definitions that are used for example to abstract away compiler specific macros or built in functions.

Note that all abstractions, that abstract compilers away always have a functioning default, so that even if your compiler is not explicitly handeled the code will still compile and run.

Macro Definition Documentation

◆ FIBER_ASSUME

#define FIBER_ASSUME ( cond)

◆ FIBER_FUNCTION_SIGNATURE

#define FIBER_FUNCTION_SIGNATURE   __func__

◆ FIBER_LIKELY

#define FIBER_LIKELY   if(condition)

◆ FIBER_UNLIKELY

#define FIBER_UNLIKELY   if(condition)

◆ FIBER_USE_UNUSED

#define FIBER_USE_UNUSED ( value)
Value:
((void)sizeof(value))

◆ FIBER_WEAK

#define FIBER_WEAK