1
0
Fork 0

Move 'likely' macros to the compiler support header

This makes it easier to move away from autoconfig in the future.

Also, use '!!' C trick to prevent accidental incorrect usage of
these macros.
This commit is contained in:
Patryk Obara 2019-12-29 09:59:56 +01:00 committed by Patryk Obara
parent cac7ba136c
commit ff2968df3f
4 changed files with 43 additions and 11 deletions

View file

@ -64,8 +64,6 @@
#define C_DIRECTSERIAL 1
#define GCC_ATTRIBUTE(x) /* attribute not supported */
#define GCC_UNLIKELY(x) (x)
#define GCC_LIKELY(x) (x)
#define INLINE __forceinline
#define DB_FASTCALL __fastcall