exception.cpp File Reference

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

Include dependency graph for exception.cpp:

Go to the source code of this file.

Namespaces

namespace  gsgl

Defines

#define BUF_SIZE   1024
#define MAKE_MESSAGE()
#define MAKE_MESSAGE_INTERNAL()


Define Documentation

#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().


Generated on Sat Mar 1 13:50:03 2008 for Periapsis Project by  doxygen 1.5.5