HawkTracer  0.8.0
macros.h File Reference
#include <hawktracer/ht_config.h>

Go to the source code of this file.

Macros

#define HT_UNUSED(x)   (void)(x)
 Helper macro for suppressing unused value warnings. More...
 
#define HT_DECLS_BEGIN   extern "C" {
 Defines a beginning of C linkage block. More...
 
#define HT_DECLS_END   }
 Defines an end of C linkage block. More...
 
#define HT_CPP11
 
#define HT_LIKELY(expr)   (expr)
 Hints a compiler that the expression is likely to evaluate to true. More...
 
#define HT_UNLIKELY(expr)   (expr)
 Hints a compiler that the expression is likely to evaluate to false. More...
 
#define HT_INLINE   inline
 Defines an inline directive for inlining functions. More...
 
#define HT_API
 Defines a directive for exporting/importing symbols from DLL. More...
 
#define HT_MACRO_CONCAT_(x, y)   x ## y
 
#define HT_MACRO_CONCAT(x, y)   HT_MACRO_CONCAT_(x, y)
 Concatenates two values. More...
 
#define HT_UNIQUE_VAR_NAME(BASE_VAR_NAME)   HT_MACRO_CONCAT(BASE_VAR_NAME, __LINE__)
 Creates unique variable name by appending a line number to a base name. More...
 
#define HT_THREAD_LOCAL   thread_local
 A thread storage duration. More...
 

Macro Definition Documentation

◆ HT_API

#define HT_API

Defines a directive for exporting/importing symbols from DLL.

◆ HT_CPP11

#define HT_CPP11

◆ HT_DECLS_BEGIN

#define HT_DECLS_BEGIN   extern "C" {

Defines a beginning of C linkage block.

◆ HT_DECLS_END

#define HT_DECLS_END   }

Defines an end of C linkage block.

◆ HT_INLINE

#define HT_INLINE   inline

Defines an inline directive for inlining functions.

◆ HT_LIKELY

#define HT_LIKELY (   expr)    (expr)

Hints a compiler that the expression is likely to evaluate to true.

This information may be used for compiler optimizations.

◆ HT_MACRO_CONCAT

#define HT_MACRO_CONCAT (   x,
 
)    HT_MACRO_CONCAT_(x, y)

Concatenates two values.

◆ HT_MACRO_CONCAT_

#define HT_MACRO_CONCAT_ (   x,
 
)    x ## y

◆ HT_THREAD_LOCAL

#define HT_THREAD_LOCAL   thread_local

A thread storage duration.

◆ HT_UNIQUE_VAR_NAME

#define HT_UNIQUE_VAR_NAME (   BASE_VAR_NAME)    HT_MACRO_CONCAT(BASE_VAR_NAME, __LINE__)

Creates unique variable name by appending a line number to a base name.

◆ HT_UNLIKELY

#define HT_UNLIKELY (   expr)    (expr)

Hints a compiler that the expression is likely to evaluate to false.

This information may be used for compiler optimizations.

◆ HT_UNUSED

#define HT_UNUSED (   x)    (void)(x)

Helper macro for suppressing unused value warnings.