#include <string>
#include <crtdbg.h>
#include <exception>
#include <stdexcept>
#include "MboTString.h"
Go to the source code of this file.
Namespaces | |
namespace | mbo |
Defines | |
#define | Stringize(L) #L |
#define | MakeString(M, L) M(L) |
#define | Line MakeString( Stringize, __LINE__ ) |
#define | Reminder __FILE__ "(" $Line ") : Reminder: " |
#define | MBO_API |
#define | DEPRECATED |
#define | DebugBreak() _asm { int 3 } |
#define | MBO_THROWS_EXCEPTIONS 1 |
#define | MBO_THROW(exception, szMessage) |
#define | __THROWS(ex) throw(ex) |
#define | __THROW2(ex1, ex2) throw(ex1,ex2) |
#define | mbo_throw_if_not(exception, condition) |
#define | mbo_malloc(size) malloc(size) |
#define | mbo_realloc(ptr, size) realloc(ptr, size) |
#define | mbo_free(prt) free(ptr) |
Mbo-lib is hosted on http://code.google.com/p/mbo-lib/
If you do not have doxygen you can also download this documentation as a chm file here:
http://marcus-boerger.de/cpp/mbo/mbo.chm
or view it online here:
marcus-boerger.de/cpp/mbo/html/
Definition in file Mbo.h.
#define DEPRECATED |
#define mbo_malloc | ( | size | ) | malloc(size) |
Definition at line 251 of file Mbo.h.
Referenced by mbo::mem_reallocator< __ValueType >::allocate().
#define mbo_realloc | ( | ptr, | |||
size | ) | realloc(ptr, size) |
Definition at line 252 of file Mbo.h.
Referenced by mbo::mem_reallocator< __ValueType >::reallocate().
#define MBO_THROW | ( | exception, | |||
szMessage | ) |
#define mbo_throw_if_not | ( | exception, | |||
condition | ) |
Value:
if (!(condition)) { \ char szMessage[1024]; \ _snprintf(szMessage, sizeof(szMessage)-1, "%s(%d): %s", __FILE__, __LINE__, #condition); \ throw exception(szMessage); \ }
Definition at line 201 of file Mbo.h.
Referenced by mbo::reallocator< __ValueType >::reallocate().
#define MBO_THROWS_EXCEPTIONS 1 |
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:08 2008 for MBO-lib by ![]() |