MyGUI_Diagnostic.h File Reference

#include "MyGUI_Prerequest.h"
#include "MyGUI_Exception.h"
#include <crtdbg.h>

Go to the source code of this file.

Defines

#define MYGUI_LOG_SECTION   "Core"
#define MYGUI_LOG_FILENAME   "MyGUI.log"
#define MYGUI_LOG(level, text)   MYGUI_LOGGING(MYGUI_LOG_SECTION, level, text)
#define MYGUI_BASE_EXCEPT(desc, src)   throw MyGUI::Exception(desc, src, __FILE__, __LINE__);
#define MYGUI_DBG_BREAK   _CrtDbgBreak();
#define MYGUI_EXCEPT(dest)
#define MYGUI_ASSERT(exp, dest)
#define MYGUI_ASSERT_RANGE(index, size, owner)   MYGUI_ASSERT(index < size, owner << " : index number " << index << " out of range [" << size << "]");
#define MYGUI_ASSERT_RANGE_AND_NONE(index, size, owner)   MYGUI_ASSERT(index < size || index == ITEM_NONE, owner << " : index number " << index << " out of range [" << size << "]");
#define MYGUI_ASSERT_RANGE_INSERT(index, size, owner)   MYGUI_ASSERT((index <= size) || (index == MyGUI::ITEM_NONE), owner << " : insert index number " << index << " out of range [" << size << "] or not ITEM_NONE");
#define MYGUI_REGISTER_VALUE(map, value)   map[#value] = value;
#define MYGUI_DEBUG_ASSERT(exp, dest)   ((void)0)
#define MYGUI_OBSOLETE_START(text)   __declspec(deprecated(text))
#define MYGUI_OBSOLETE_END
#define MYGUI_OBSOLETE(text)   /*! \deprecated text */ MYGUI_OBSOLETE_START(text)MYGUI_OBSOLETE_END

Detailed Description

Author:
Albert Semenov
baho_is
Date:
11/2007

Definition in file MyGUI_Diagnostic.h.


Define Documentation

#define MYGUI_ASSERT ( exp,
dest   ) 
Value:
{ \
    if ( ! (exp) ) \
    { \
        MYGUI_LOG(Critical, dest); \
        MYGUI_DBG_BREAK;\
        std::ostringstream stream; \
        stream << dest << "\n"; \
        MYGUI_BASE_EXCEPT(stream.str().c_str(), "MyGUI"); \
    } \
}

Definition at line 57 of file MyGUI_Diagnostic.h.

#define MYGUI_ASSERT_RANGE ( index,
size,
owner   )     MYGUI_ASSERT(index < size, owner << " : index number " << index << " out of range [" << size << "]");

Definition at line 69 of file MyGUI_Diagnostic.h.

#define MYGUI_ASSERT_RANGE_AND_NONE ( index,
size,
owner   )     MYGUI_ASSERT(index < size || index == ITEM_NONE, owner << " : index number " << index << " out of range [" << size << "]");

Definition at line 70 of file MyGUI_Diagnostic.h.

#define MYGUI_ASSERT_RANGE_INSERT ( index,
size,
owner   )     MYGUI_ASSERT((index <= size) || (index == MyGUI::ITEM_NONE), owner << " : insert index number " << index << " out of range [" << size << "] or not ITEM_NONE");

Definition at line 71 of file MyGUI_Diagnostic.h.

#define MYGUI_BASE_EXCEPT ( desc,
src   )     throw MyGUI::Exception(desc, src, __FILE__, __LINE__);

Definition at line 39 of file MyGUI_Diagnostic.h.

#define MYGUI_DBG_BREAK   _CrtDbgBreak();

Definition at line 43 of file MyGUI_Diagnostic.h.

#define MYGUI_DEBUG_ASSERT ( exp,
dest   )     ((void)0)

Definition at line 82 of file MyGUI_Diagnostic.h.

#define MYGUI_EXCEPT ( dest   ) 
Value:
{ \
    MYGUI_LOG(Critical, dest); \
    MYGUI_DBG_BREAK;\
    std::ostringstream stream; \
    stream << dest << "\n"; \
    MYGUI_BASE_EXCEPT(stream.str().c_str(), "MyGUI"); \
}

Definition at line 48 of file MyGUI_Diagnostic.h.

#define MYGUI_LOG ( level,
text   )     MYGUI_LOGGING(MYGUI_LOG_SECTION, level, text)

Definition at line 37 of file MyGUI_Diagnostic.h.

#define MYGUI_LOG_FILENAME   "MyGUI.log"

Definition at line 36 of file MyGUI_Diagnostic.h.

#define MYGUI_LOG_SECTION   "Core"

Definition at line 35 of file MyGUI_Diagnostic.h.

#define MYGUI_OBSOLETE ( text   )     /*! \deprecated text */ MYGUI_OBSOLETE_START(text)MYGUI_OBSOLETE_END

Definition at line 111 of file MyGUI_Diagnostic.h.

#define MYGUI_OBSOLETE_END

Definition at line 93 of file MyGUI_Diagnostic.h.

#define MYGUI_OBSOLETE_START ( text   )     __declspec(deprecated(text))

Definition at line 92 of file MyGUI_Diagnostic.h.

#define MYGUI_REGISTER_VALUE ( map,
value   )     map[#value] = value;

Definition at line 81 of file MyGUI_Diagnostic.h.


Generated on 5 Dec 2009 for MyGUI by  doxygen 1.6.1