You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|