Zth (libzth)
macros.h File Reference

Go to the source code of this file.

Macros

#define _DEBUG
 
#define ZTH_THREADS   1
 
#define ZTH_TLS_DECLARE(type, var)   extern __thread type var;
 
#define ZTH_TLS_DEFINE(type, var, init)   __thread type var = init;
 
#define ZTH_TLS_STATIC(type, var, init)   static __thread type var = init;
 
#define ZTH_TLS_MEMBER(type, var)   static __thread type var;
 
#define ZTH_TLS_SET(var, value)   var = value
 
#define ZTH_TLS_GET(var)   var
 
#define _GNU_SOURCE
 
#define ZTH_ATTR_PRINTF   gnu_printf
 
#define GCC_VERSION    (__GNUC__ * 10000L + __GNUC_MINOR__ * 100L + __GNUC_PATCHLEVEL__)
 
#define UNUSED_PAR(name)   name __attribute__((unused))
 
#define ZTH_FALLTHROUGH   [[fallthrough]];
 
#define __STDC_FORMAT_MACROS
 
#define ZTH_INLINE   __attribute__((gnu_inline)) inline
 
#define constexpr14   constexpr
 
#define is_default   = default;
 
#define LREF_QUALIFIED   &
 
#define try   if(true)
 
#define catch(...)   if(false)
 
#define zth_throw(e)   std::abort()
 
#define ZTH_ARCH_X86_64   1
 
#define barrier()   __sync_synchronize()
 
#define ZTH_OS_LINUX   1
 
#define ZTH_OS_POSIX   1
 
#define ZTH_HAVE_PTHREAD
 
#define ZTH_HAVE_POLL
 
#define ZTH_HAVE_MMAN
 
#define ZTH_CONTEXT_UCONTEXT
 

Macro Definition Documentation

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS

Definition at line 112 of file macros.h.

◆ _DEBUG

#define _DEBUG

Definition at line 22 of file macros.h.

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 63 of file macros.h.

◆ barrier

#define barrier ( )    __sync_synchronize()

Definition at line 257 of file macros.h.

◆ catch

#define catch (   ...)    if(false)

Definition at line 221 of file macros.h.

◆ constexpr14

#define constexpr14   constexpr

Definition at line 201 of file macros.h.

◆ GCC_VERSION

#define GCC_VERSION    (__GNUC__ * 10000L + __GNUC_MINOR__ * 100L + __GNUC_PATCHLEVEL__)

Definition at line 69 of file macros.h.

◆ is_default

#define is_default   = default;

Definition at line 205 of file macros.h.

◆ LREF_QUALIFIED

#define LREF_QUALIFIED   &

Definition at line 208 of file macros.h.

◆ try

#define try   if(true)

Definition at line 220 of file macros.h.

◆ UNUSED_PAR

#define UNUSED_PAR (   name)    name __attribute__((unused))
Examples
6_stack.cpp, 7_no_async.cpp, 9_c_api.c, daemon_pattern.cpp, measure.cpp, and zmq.cpp.

Definition at line 79 of file macros.h.

◆ ZTH_ARCH_X86_64

#define ZTH_ARCH_X86_64   1

Definition at line 238 of file macros.h.

◆ ZTH_ATTR_PRINTF

#define ZTH_ATTR_PRINTF   gnu_printf

Definition at line 66 of file macros.h.

◆ ZTH_CONTEXT_UCONTEXT

#define ZTH_CONTEXT_UCONTEXT

Definition at line 380 of file macros.h.

◆ ZTH_FALLTHROUGH

#define ZTH_FALLTHROUGH   [[fallthrough]];

Definition at line 90 of file macros.h.

◆ ZTH_HAVE_MMAN

#define ZTH_HAVE_MMAN

Definition at line 292 of file macros.h.

◆ ZTH_HAVE_POLL

#define ZTH_HAVE_POLL

Definition at line 291 of file macros.h.

◆ ZTH_HAVE_PTHREAD

#define ZTH_HAVE_PTHREAD

Definition at line 289 of file macros.h.

◆ ZTH_INLINE

#define ZTH_INLINE   __attribute__((gnu_inline)) inline

Definition at line 130 of file macros.h.

◆ ZTH_OS_LINUX

#define ZTH_OS_LINUX   1

Definition at line 286 of file macros.h.

◆ ZTH_OS_POSIX

#define ZTH_OS_POSIX   1

Definition at line 287 of file macros.h.

◆ ZTH_THREADS

#define ZTH_THREADS   1

Definition at line 26 of file macros.h.

◆ zth_throw

#define zth_throw (   e)    std::abort()

Definition at line 222 of file macros.h.

◆ ZTH_TLS_DECLARE

#define ZTH_TLS_DECLARE (   type,
  var 
)    extern __thread type var;

Definition at line 55 of file macros.h.

◆ ZTH_TLS_DEFINE

#define ZTH_TLS_DEFINE (   type,
  var,
  init 
)    __thread type var = init;

Definition at line 56 of file macros.h.

◆ ZTH_TLS_GET

#define ZTH_TLS_GET (   var)    var

Definition at line 60 of file macros.h.

◆ ZTH_TLS_MEMBER

#define ZTH_TLS_MEMBER (   type,
  var 
)    static __thread type var;

Definition at line 58 of file macros.h.

◆ ZTH_TLS_SET

#define ZTH_TLS_SET (   var,
  value 
)    var = value

Definition at line 59 of file macros.h.

◆ ZTH_TLS_STATIC

#define ZTH_TLS_STATIC (   type,
  var,
  init 
)    static __thread type var = init;

Definition at line 57 of file macros.h.