uLib-0.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros.h File Reference
#include <assert.h>
#include "boost/foreach.hpp"

Go to the source code of this file.

Macros

#define uLibAssert(condition)   assert(condition)
 
#define DLL_PUBLIC
 
#define DLL_LOCAL
 
#define foreach(ref, list)   BOOST_FOREACH(ref,list)
 
#define uLibVGetMacro(name, type)   virtual inline const type Get##name() const = 0;
 
#define uLibVSetMacro(name, type)   virtual inline void Set##name(const type name) = 0;
 
#define uLibVGetSetMacro(name, type)
 
#define uLibVRefMacro(name, type)   virtual inline type & name() = 0;
 
#define uLibGetMacro(name, type)   inline type Get##name() const { return this->m_##name; }
 
#define uLibConstRefMacro(name, type)   inline const type & name() const { return this->m_##name; }
 
#define uLibSetMacro(name, type)   inline void Set##name(type name) { this->m_##name = name; }
 
#define uLibGetSetMacro(name, type)
 
#define uLibRefMacro(name, type)   inline type & name() { return this->m_##name; }
 
#define unlikely(expr)   __builtin_expect(!!(expr), 0)
 
#define likely(expr)   __builtin_expect(!!(expr), 1)
 

Macro Definition Documentation

#define DLL_LOCAL
#define DLL_PUBLIC
#define foreach (   ref,
  list 
)    BOOST_FOREACH(ref,list)
#define likely (   expr)    __builtin_expect(!!(expr), 1)
#define uLibAssert (   condition)    assert(condition)
#define uLibConstRefMacro (   name,
  type 
)    inline const type & name() const { return this->m_##name; }
#define uLibGetMacro (   name,
  type 
)    inline type Get##name() const { return this->m_##name; }
#define uLibGetSetMacro (   name,
  type 
)
Value:
inline type Get##name() const { return this->m_##name; } \
uLibSetMacro(name,type);
#define uLibSetMacro(name, type)
Definition: Macros.h:99
#define uLibRefMacro (   name,
  type 
)    inline type & name() { return this->m_##name; }
#define uLibSetMacro (   name,
  type 
)    inline void Set##name(type name) { this->m_##name = name; }
#define uLibVGetMacro (   name,
  type 
)    virtual inline const type Get##name() const = 0;
#define uLibVGetSetMacro (   name,
  type 
)
Value:
uLibVGet(name,type); \
uLibVSet(name,type);
#define uLibVRefMacro (   name,
  type 
)    virtual inline type & name() = 0;
#define uLibVSetMacro (   name,
  type 
)    virtual inline void Set##name(const type name) = 0;
#define unlikely (   expr)    __builtin_expect(!!(expr), 0)