#include "data/exception.hpp"
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cwchar>
#include <cstdarg>

Go to the source code of this file.
Namespaces | |
| namespace | gsgl |
Defines | |
| #define | BUF_SIZE 1024 |
| #define | MAKE_MESSAGE() |
| #define | MAKE_MESSAGE_INTERNAL() |
| #define BUF_SIZE 1024 |
Definition at line 52 of file exception.cpp.
| #define MAKE_MESSAGE | ( | ) |
Value:
{ \
wchar_t buf[BUF_SIZE]; \
va_list args; \
va_start(args, format); \
::vswprintf(buf, BUF_SIZE, format, args); \
va_end(args); \
message = ::wcsdup(buf); \
}
Definition at line 54 of file exception.cpp.
Referenced by exception::exception(), io_exception::io_exception(), and runtime_exception::runtime_exception().
| #define MAKE_MESSAGE_INTERNAL | ( | ) |
Value:
{ \
wchar_t buf[BUF_SIZE]; \
va_list args; \
va_start(args, format); \
::vswprintf(buf, BUF_SIZE, format, args); \
va_end(args); \
message = ::wcsdup(buf); \
::swprintf(buf, BUF_SIZE, L"%hs: %d: %ls \n(%ls).", fname, line, message, L"Please contact the developer"); \
::free(message); \
message = ::wcsdup(buf); \
}
Definition at line 64 of file exception.cpp.
Referenced by internal_exception::internal_exception(), memory_exception::memory_exception(), and opengl_exception::opengl_exception().
1.5.5