mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
13 lines
332 B
C++
13 lines
332 B
C++
|
#ifndef __NCPP_HELPERS_HH
|
||
|
#define __NCPP_HELPERS_HH
|
||
|
|
||
|
namespace ncpp
|
||
|
{
|
||
|
#define NCPP_LIKELY(expr) (__builtin_expect ((expr) != 0, 1))
|
||
|
#define NCPP_UNLIKELY(expr) (__builtin_expect ((expr) != 0, 0))
|
||
|
|
||
|
#define NCPP_API_EXPORT __attribute__((visibility ("default")))
|
||
|
#define NCPP_API_LOCAL __attribute__((visibility ("hidden")))
|
||
|
}
|
||
|
#endif
|