~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Platforms/DirectX11/DirectX11Platform/include/MyGUI_DirectX11Diagnostic.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Ustinov Igor aka Igor', DadyaIgor
4
 
        @date           09/2011
5
 
*/
6
 
#ifndef __MYGUI_DIRECTX11_DIAGNOSTIC_H__
7
 
#define __MYGUI_DIRECTX11_DIAGNOSTIC_H__
8
 
 
9
 
#include "MyGUI_Prerequest.h"
10
 
 
11
 
#define MYGUI_PLATFORM_LOG_SECTION "Platform"
12
 
#define MYGUI_PLATFORM_LOG_FILENAME "MyGUI.log"
13
 
#define MYGUI_PLATFORM_LOG(level, text) MYGUI_LOGGING(MYGUI_PLATFORM_LOG_SECTION, level, text)
14
 
 
15
 
#define MYGUI_PLATFORM_EXCEPT(dest) \
16
 
{ \
17
 
        MYGUI_PLATFORM_LOG(Critical, dest); \
18
 
        MYGUI_DBG_BREAK;\
19
 
        std::ostringstream stream; \
20
 
        stream << dest << "\n"; \
21
 
        MYGUI_BASE_EXCEPT(stream.str().c_str(), "MyGUI"); \
22
 
}
23
 
 
24
 
#define MYGUI_PLATFORM_ASSERT(exp, dest) \
25
 
{ \
26
 
        if ( ! (exp) ) \
27
 
        { \
28
 
                MYGUI_PLATFORM_LOG(Critical, dest); \
29
 
                MYGUI_DBG_BREAK;\
30
 
                std::ostringstream stream; \
31
 
                stream << dest << "\n"; \
32
 
                MYGUI_BASE_EXCEPT(stream.str().c_str(), "MyGUI"); \
33
 
        } \
34
 
}
35
 
 
36
 
#endif // __MYGUI_DIRECTX11_DIAGNOSTIC_H__
 
1
/*!
 
2
        @file
 
3
        @author         Ustinov Igor aka Igor', DadyaIgor
 
4
        @date           09/2011
 
5
*/
 
6
#ifndef __MYGUI_DIRECTX11_DIAGNOSTIC_H__
 
7
#define __MYGUI_DIRECTX11_DIAGNOSTIC_H__
 
8
 
 
9
#include "MyGUI_Prerequest.h"
 
10
 
 
11
#define MYGUI_PLATFORM_LOG_SECTION "Platform"
 
12
#define MYGUI_PLATFORM_LOG_FILENAME "MyGUI.log"
 
13
#define MYGUI_PLATFORM_LOG(level, text) MYGUI_LOGGING(MYGUI_PLATFORM_LOG_SECTION, level, text)
 
14
 
 
15
#define MYGUI_PLATFORM_EXCEPT(dest) \
 
16
{ \
 
17
        MYGUI_PLATFORM_LOG(Critical, dest); \
 
18
        MYGUI_DBG_BREAK;\
 
19
        std::ostringstream stream; \
 
20
        stream << dest << "\n"; \
 
21
        MYGUI_BASE_EXCEPT(stream.str().c_str(), "MyGUI"); \
 
22
}
 
23
 
 
24
#define MYGUI_PLATFORM_ASSERT(exp, dest) \
 
25
{ \
 
26
        if ( ! (exp) ) \
 
27
        { \
 
28
                MYGUI_PLATFORM_LOG(Critical, dest); \
 
29
                MYGUI_DBG_BREAK;\
 
30
                std::ostringstream stream; \
 
31
                stream << dest << "\n"; \
 
32
                MYGUI_BASE_EXCEPT(stream.str().c_str(), "MyGUI"); \
 
33
        } \
 
34
}
 
35
 
 
36
#endif // __MYGUI_DIRECTX11_DIAGNOSTIC_H__