Changeset 19 in cheroxy for trunk/include/CRXException.h


Ignore:
Timestamp:
11/08/12 17:12:01 (11 years ago)
Author:
cheese
Message:

#1 fix error on linux for r18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/CRXException.h

    r18 r19  
    66
    77#include <string>
     8#include <stdarg.h>
    89
    910#ifdef _WIN32
     
    1112#endif
    1213
    13 #define CRX_ERROR(__CODE,__FMT,...)                                             \
    14     do {                                                                        \
    15         SetErrorCode    (__CODE);                                           \
    16         SetErrorMessage (__FILE__,__func__,__LINE__,__FMT,__VA_ARGS__);     \
     14#define CRX_ERROR(__CODE,__FMT,...)                                         \
     15    do {                                                                    \
     16        SetErrorCode (__CODE);                                          \
     17        SetErrorMessage (__FILE__,__func__,__LINE__,__FMT,##__VA_ARGS__);   \
     18    } while (0)
     19
     20#define CRX_ERROR_ADD(__MESSAGE)                                            \
     21    do {                                                                    \
     22        AddMessage (__MESSAGE);                                             \
    1723    } while (0)
    1824
     
    4753                                         const char * aFormat,
    4854                                         va_list    aVaList);
     55
     56    void        AddMessage              (const char * aMessage);
    4957};
    5058
Note: See TracChangeset for help on using the changeset viewer.