0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros
compat-c.h File Reference

Required portability definitions for all .cc files. More...

#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for compat-c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HT_EXTERN_C   extern
 
#define HT_CDECL
 
#define HT_PUBLIC(ret_type)   ret_type HT_CDECL
 
#define HT_EXTERN(ret_type)   HT_EXTERN_C HT_PUBLIC(ret_type)
 
#define HT_NORETURN
 
#define HT_FORMAT(x)
 
#define __attribute__(x)
 
#define HT_FUNC   __func__
 
#define HT_COND(x, _prob_)   (x)
 
#define HT_LIKELY(x)   HT_COND(x, 1)
 
#define HT_UNLIKELY(x)   HT_COND(x, 0)
 
#define __STDC_LIMIT_MACROS
 

Detailed Description

Required portability definitions for all .cc files.

This header file contains common macro definitions and includes required for portability. This file must be the first header included in all .cc files.

Definition in file compat-c.h.

Macro Definition Documentation

#define __attribute__ (   x)

Definition at line 63 of file compat-c.h.

#define __STDC_LIMIT_MACROS

Definition at line 74 of file compat-c.h.

#define HT_CDECL

Definition at line 48 of file compat-c.h.

#define HT_COND (   x,
  _prob_ 
)    (x)

Definition at line 66 of file compat-c.h.

#define HT_EXTERN (   ret_type)    HT_EXTERN_C HT_PUBLIC(ret_type)

Definition at line 52 of file compat-c.h.

#define HT_EXTERN_C   extern

Definition at line 41 of file compat-c.h.

#define HT_FORMAT (   x)

Definition at line 61 of file compat-c.h.

#define HT_FUNC   __func__

Definition at line 65 of file compat-c.h.

#define HT_LIKELY (   x)    HT_COND(x, 1)

Definition at line 69 of file compat-c.h.

#define HT_NORETURN

Definition at line 60 of file compat-c.h.

#define HT_PUBLIC (   ret_type)    ret_type HT_CDECL

Definition at line 51 of file compat-c.h.

#define HT_UNLIKELY (   x)    HT_COND(x, 0)

Definition at line 70 of file compat-c.h.