corda/src/common.h

17 lines
356 B
C
Raw Normal View History

#ifndef COMMON_H
#define COMMON_H
2007-06-05 00:28:52 +00:00
#include "stdint.h"
#include "stdarg.h"
#include "string.h"
#include "stdio.h"
2007-06-05 00:28:52 +00:00
#define NO_RETURN __attribute__((noreturn))
#define UNLIKELY(v) __builtin_expect(v, 0)
2007-06-05 00:28:52 +00:00
#define MACRO_XY(X, Y) X##Y
#define MACRO_MakeNameXY(FX, LINE) MACRO_XY(FX, LINE)
#define MAKE_NAME(FX) MACRO_MakeNameXY(FX, __LINE__)
#endif//COMMON_H