~om26er/ubuntu/oneiric/nux/sru-888039

« back to all changes in this revision

Viewing changes to NuxCore/NuxCore.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-07-21 18:41:46 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20110721184146-po1lz9xhvsz1x7kt
Tags: 1.0.6-0ubuntu1
* New upstream release.
* debian/control:
  - dep on libglu1-mesa-dev
* debian/rules:
  - bump shlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    ((DWORD)(BYTE)(ch3) << 24 ))
90
90
 
91
91
 
92
 
#define NUX_RUNTIME_ERROR(str, ...)             LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
93
 
#define NUX_ERROR_IF_NULL(test, str, ...)       if(test == 0)   LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
94
 
#define NUX_ERROR_IF_TRUE(test, str, ...)       if(test)        LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
95
 
#define NUX_ERROR_IF_FALSE(test, str, ...)      if(!(test))     LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
96
 
 
97
 
#define NUX_RETURN_IF_NULL(test)                if(test == 0)   return;
98
 
#define NUX_RETURN_IF_TRUE(test)                if(test)        return;
99
 
#define NUX_RETURN_IF_FALSE(test)               if(!(test))     return;
100
 
 
101
 
#define NUX_RETURN_VALUE_IF_NULL(test, value)   if(test == 0)   return value;
102
 
#define NUX_RETURN_VALUE_IF_TRUE(test, value)   if(test)        return value;
103
 
#define NUX_RETURN_VALUE_IF_FALSE(test, value)  if(!(test))     return value;
 
92
#define INLNEW new
 
93
#define INLDELETE delete
 
94
#define INLDELETEARRAY delete []
 
95
 
 
96
#define NUX_RUNTIME_ERROR(str, ...)               LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
 
97
#define NUX_ERROR_IF_NULL(test, str, ...)         if(test == 0)   LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
 
98
#define NUX_ERROR_IF_TRUE(test, str, ...)         if(test)        LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
 
99
#define NUX_ERROR_IF_FALSE(test, str, ...)        if(!(test))     LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
 
100
 
 
101
#define NUX_RETURN_IF_NULL(test)                  if(test == 0)   return;
 
102
#define NUX_RETURN_IF_NOTNULL(test)               if(test != 0)   return;
 
103
#define NUX_RETURN_IF_TRUE(test)                  if(test)        return;
 
104
#define NUX_RETURN_IF_FALSE(test)                 if(!(test))     return;
 
105
#define NUX_RETURN_IF_FAIL(test)                  if(!test)       return;
 
106
 
 
107
#define NUX_RETURN_VALUE_IF_NULL(test, value)     if(test == 0)   return value;
 
108
#define NUX_RETURN_VALUE_IF_NOTNULL(test, value)  if(test != 0)   return value;
 
109
#define NUX_RETURN_VALUE_IF_TRUE(test, value)     if(test)        return value;
 
110
#define NUX_RETURN_VALUE_IF_FALSE(test, value)    if(!(test))     return value;
104
111
 
105
112
 
106
113
// Structure Alignment