Back to index

nux  3.0.0
Namespaces | Defines | Enumerations | Functions | Variables
NuxCore.h File Reference
#include "System.h"
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <exception>
#include <stdexcept>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <iomanip>
#include <map>
#include <vector>
#include <list>
#include <stack>
#include <queue>
#include <algorithm>
#include <new>
#include <set>
#include "Macros.h"
#include "Memory.h"
#include "Character/NUni.h"
#include "Template.h"
#include "NumberConversion.h"
#include "TextString.h"
#include "NUniqueIndex.h"
#include "Character/NTChar.h"
#include "TimeFunctions.h"
#include "Platform.h"
#include "FileManager/NSerializer.h"
#include "Process.h"
#include "OutputDevice.h"
#include "FileManager/NFileManagerGeneric.h"
#include "FileIO.h"
#include "ObjectType.h"
#include "FileName.h"
#include "Color.h"
#include "Colors.h"
#include "Object.h"
#include "GlobalInitializer.h"

Go to the source code of this file.

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

Defines

#define NUX_STATIC_CAST(a, b)   static_cast<a>(b)
#define NUX_REINTERPRET_CAST(a, b)   reinterpret_cast<a>(b)
#define NUX_CONST_CAST(a, b)   const_cast<a>(b)
#define NUX_DYNAMIC_CAST(a, b)   dynamic_cast<a>(b)
#define NUX_INVALID_INDEX   -1
#define NUX_INVALID_HANDLE   -1
#define NUX_IN
#define NUX_OUT
#define NUX_MAKEFOURCHARTAG(ch0, ch1, ch2, ch3)
#define INLNEW   new
#define INLDELETE   delete
#define INLDELETEARRAY   delete []
#define NUX_RUNTIME_ERROR(str,...)   LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
#define NUX_ERROR_IF_NULL(test, str,...)   if((test) == 0) LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
#define NUX_ERROR_IF_TRUE(test, str,...)   if(test) LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
#define NUX_ERROR_IF_FALSE(test, str,...)   if(!(test)) LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);
#define NUX_RETURN_IF_NULL(test)   if((test) == 0) return;
#define NUX_RETURN_IF_NOTNULL(test)   if((test) != 0) return;
#define NUX_RETURN_IF_TRUE(test)   if(test) return;
#define NUX_RETURN_IF_FALSE(test)   if(!(test)) return;
#define NUX_RETURN_IF_FAIL(test)   if(!(test)) return;
#define NUX_RETURN_VALUE_IF_NULL(test, value)   if((test) == 0) return value;
#define NUX_RETURN_VALUE_IF_NOTNULL(test, value)   if((test) != 0) return value;
#define NUX_RETURN_VALUE_IF_TRUE(test, value)   if(test) return value;
#define NUX_RETURN_VALUE_IF_FALSE(test, value)   if(!(test)) return value;
#define NUX_ARRAY_SIZE(array)   (sizeof(array) / sizeof((array)[0]))
#define GET_VARARGS(msg, size, len, fmt)
#define GET_VARARGS_ANSI(msg, size, len, fmt)
#define GET_VARARGS_RESULT(msg, size, len, fmt, result)
#define nuxOkMsg(str,...)   { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_INFO, str, ##__VA_ARGS__);}
#define nuxWarningMsg(str,...)   { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_WARNING, str, ##__VA_ARGS__);}
#define nuxAlertMsg(str,...)   { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_ALERT, str, ##__VA_ARGS__);}
#define nuxCriticalMsg(str,...)   { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_CRITICAL, str, ##__VA_ARGS__);}
#define nuxDebugMsg(a,...)
#define nuxError(a,...)   {}
#define nuxAssert(expr)   {}
#define nuxVerifyExpr(expr)   { if(!(expr)) {} }
#define nuxAssertMsg(expr, msg,...)   {}
#define nuxVerifyExprMsg(expr, a,...)   { if(!(expr)) {} }
#define nuxAssertNoEntry()   {}
#define nuxAssertNoReentry()   {}
#define nuxAssertNoRecursion()   {}
#define nuxAssertAtCompileTime(expr)   {}
#define CALL_OS_TCHAR_FUNCTION(funcW, funcA)   funcA
#define TCHAR_TO_ANSI(str)   str
#define ANSI_TO_TCHAR(str)   (const TCHAR*)((const ANSICHAR*)str)
#define UTF8ToTCHAR(str)   str
#define TCHARToUTF8(str)   str
#define UTF16ToTCHAR(str)   (const char*)NUTF8(str)
#define TCHARToUTF16(str)   (const wchar_t*)NUTF16(str)
#define inlUTF16ToUTF8(s)   (const char*)nux::NUTF8(s)
#define inlUTF8ToUTF16(s)   (const wchar_t*)nux::NUTF16(s)
#define ANSICHAR_TO_UNICHAR(str)   (UNICHAR*) nux::NCharacterConversion <UNICHAR, ANSICHAR, nux::AnsicharToUnicharConvertion>((const ANSICHAR*)str)
#define UNICHAR_TO_ANSICHAR(str)   (ANSICHAR*) nux::NCharacterConversion <ANSICHAR, UNICHAR, nux::UnicharToAnsicharConvertion>((const UNICHAR*)str)
#define ANSICHAR_TO_TCHAR(str)   (UNICHAR*) nux::NCharacterConversion <TCHAR, ANSICHAR, nux::AnsiToTCharConversion>((const ANSICHAR*)str)
#define TCHAR_TO_ANSICHAR(str)   (ANSICHAR*) nux::NCharacterConversion <ANSICHAR, TCHAR, nux::TCharToAnsiConvertion>((const TCHAR*)str)
#define TCHAR_TO_UNICHAR(str)   (UNICHAR*) nux::NCharacterConversion <UNICHAR, TCHAR, nux::TCharToUnicharConvertion>((const TCHAR*)str)
#define NUX_WIN32_LINE_TERMINATOR   TEXT("\r\n")
#define NUX_UNIX_LINE_TERMINATOR   TEXT("\n")
#define NUX_MACOSX_LINE_TERMINATOR   TEXT("\n")
#define NUX_BACKSLASH_CHAR   TEXT('\\')
#define NUX_BACKSLASH_STRING   TEXT("\\")
#define NUX_SLASH_CHAR   TEXT('/')
#define NUX_SLASH_STRING   TEXT("/")
#define NUX_MAX_FILEPATH_SIZE   1024
#define WCSNCPY_S(strDest, numberOfElements, strSource, count)   wcsncpy (strDest, strSource, count)
#define STRNCPY_S(strDest, numberOfElements, strSource, count)   _tcsncpy(strDest, strSource, count)
#define STRCPY_S(strDest, numberOfElements, strSource)   _tcscpy(strDest, strSource)
#define STRCAT_S(strDest, numberOfElements, strSource)   _tcscat(strDest, strSource)
#define VSNPRINTF_S(strDest, numberOfElements, Count, format, VA_Arg_List)   vsnprintf(strDest, Count, format, VA_Arg_List)
#define VSNTPRINTF_S(strDest, numberOfElements, Count, format, VA_Arg_List)   _vsntprintf(strDest, Count, format, VA_Arg_List)
#define SPRINTF_S(strDest, numberOfElements, format,...)   _stprintf(strDest, format, ##__VA_ARGS__)
#define SNPRINTF_S(strDest, numberOfElements, Count, format,...)   _sntprintf(strDest, Count, format, ##__VA_ARGS__)
#define STRDATE_S(strDest, numberOfElements)   _tstrdate(strDest)
#define STRTIME_S(strDest, numberOfElements)   _tstrtime(strDest)
#define FOPEN_S(file, filename, mode)   (file = _tfopen(filename, mode))
#define STRLEN_S(str, numberOfElements)   _tcslen(str)
#define SPLITPATH_S(path, Drive, DriveNumElements, Dir, DirNumElements, Filename, FileNumElements, Extension, ExtNumElements)   _tsplitpath(path, Drive, Dir, Filename, Extension)
#define MAKEPATH_S(path, numberOfElements, Drive, Dir, Filename, Extension)   _makepath(path, Drive, Dir, Filename, Extension)
#define SSCANF_S(buffer, format,...)   _stscanf(buffer, format, ##__VA_ARGS__)
#define SNSCANF_S(input, length, format,...)   _sntscanf(input, length, format, ##__VA_ARGS__)
#define tstring   std::string
#define tostream   std::ostream
#define tistream   std::istream
#define tiostream   std::iostream
#define tofstream   std::ofstream
#define tfstream   std::fstream
#define GNullDevice   NUX_GLOBAL_OBJECT_INSTANCE(nux::NullOutput)
#define GLogDevice   NUX_GLOBAL_OBJECT_INSTANCE(nux::LogOutputRedirector)
#define nuxIsDebuggerPresent()   0
#define inlDebugBreak()
#define NUX_HARDWARE_BREAK
#define NUX_BREAK_ASM_INT3
#define VARARG_EXTRA(A)   A,
#define VARARG_NONE
#define VARARG_PURE   =0
#define VARARG_DECL(FuncRet, StaticFuncRet, Return, FuncName, Pure, FmtType, ExtraParamDecl, ExtraParam)   FuncRet FuncName( ExtraParamDecl FmtType Fmt, ... ) Pure
#define VARARG_BODY(FuncRet, FuncName, FmtType, ExtraParamDecl)   FuncRet FuncName( ExtraParamDecl FmtType Fmt, ... )

Enumerations

enum  nux::MessageSeverity {
  nux::NUX_MSG_SEVERITY_CRITICAL = 0, nux::NUX_MSG_SEVERITY_ALERT = 1, nux::NUX_MSG_SEVERITY_WARNING = 2, nux::NUX_MSG_SEVERITY_INFO = 3,
  nux::NUX_MSG_SEVERITY_NONE = 4
}
enum  nux::EFileWrite {
  nux::FILEWRITE_NOFAIL = 0x01, nux::FILEWRITE_NOREPLACEEXISTING = 0x02, nux::FILEWRITE_EVENIFREADONLY = 0x04, nux::FILEWRITE_UNBUFFERED = 0x08,
  nux::FILEWRITE_APPEND = 0x10, nux::FILEWRITE_ALLOWREAD = 0x20
}
enum  nux::ECopyResult {
  nux::COPY_OK = 0x00, nux::COPY_MISCFAIL = 0x01, nux::COPY_READFAIL = 0x02, nux::COPY_WRITEFAIL = 0x03,
  nux::COPY_CANCELED = 0x06
}
enum  nux::NUX_STATUS {
  nux::NUX_OK, nux::NUX_ERROR, nux::NUX_FILENOTFOUND, nux::NUX_COPYFILE_ERROR,
  nux::NUX_DELETEFILE_ERROR
}

Functions

unsigned int nux::GetVariableArgs (TCHAR *Dest, unsigned int Size, unsigned int Count, const TCHAR *&Fmt, va_list ArgPtr)
unsigned int nux::GetVariableArgsAnsi (ANSICHAR *Dest, unsigned int Size, unsigned int Count, const ANSICHAR *&Fmt, va_list ArgPtr)
void nux::PrintOutputDebugString (const TCHAR *Format,...)
 Log an outpout message to console or visual studio output. To be used while the log redirector is not initialized.
void nux::LogOutputAssertMessage (const ANSICHAR *File, int Line, const TCHAR *Format=TEXT(""),...)
 Log an assertion failure to registered output.
void nux::LogOutputErrorMessage (const ANSICHAR *File, int Line, const TCHAR *Format=TEXT(""),...)
 Log an error message to registered output.
void nux::LogOutputDebugMessage (const TCHAR *Format,...)
 Log and output message with a severity factor to registered output. Print colored output in XTerm.
void nux::LogOutputSeverityMessage (int Severity, const TCHAR *Format,...)
 Log and output message with a severity factor to registered output. Print colored output in XTerm.
bool nux::OutputRedirectorReady ()

Variables

const BYTE nux::NUX_UTF32_BE [] = {0x04 , 0x00, 0x00, 0xFE, 0xFF }
const BYTE nux::NUX_UTF32_LE [] = {0x04 , 0xFF, 0xFE, 0x00, 0x00 }
const BYTE nux::NUX_UTF16_BE [] = {0x02 , 0xFE, 0xFF }
const BYTE nux::NUX_UTF16_LE [] = {0x02 , 0xFF, 0xFE }
const BYTE nux::NUX_UTF8 [] = {0x03 , 0xEF, 0xBB, 0xBF }

Define Documentation

#define ANSI_TO_TCHAR (   str)    (const TCHAR*)((const ANSICHAR*)str)

Definition at line 276 of file NuxCore.h.

Definition at line 308 of file NuxCore.h.

Definition at line 306 of file NuxCore.h.

#define CALL_OS_TCHAR_FUNCTION (   funcW,
  funcA 
)    funcA

Definition at line 274 of file NuxCore.h.

#define FOPEN_S (   file,
  filename,
  mode 
)    (file = _tfopen(filename, mode))

Definition at line 377 of file NuxCore.h.

#define GET_VARARGS (   msg,
  size,
  len,
  fmt 
)
Value:
{                                                   \
    va_list arg_list;                               \
    va_start(arg_list,fmt);                         \
    VSNTPRINTF_S( msg, size, len, fmt, arg_list );  \
    va_end( arg_list );                             \
}

Definition at line 141 of file NuxCore.h.

#define GET_VARARGS_ANSI (   msg,
  size,
  len,
  fmt 
)
Value:
{                                                   \
    va_list arg_list;                               \
    va_start(arg_list,fmt);                         \
    VSNPRINTF_S( msg, size, len, fmt, arg_list );   \
    va_end( arg_list );                             \
}

Definition at line 148 of file NuxCore.h.

#define GET_VARARGS_RESULT (   msg,
  size,
  len,
  fmt,
  result 
)
Value:
{                                                               \
    va_list arg_list;                                           \
    va_start(arg_list, fmt);                                    \
    result = GetVariableArgs(msg, size, len, fmt, arg_list);    \
    va_end(arg_list);                                           \
}

Definition at line 155 of file NuxCore.h.

Definition at line 444 of file NuxCore.h.

Definition at line 443 of file NuxCore.h.

#define inlDebugBreak ( )

Definition at line 476 of file NuxCore.h.

#define INLDELETE   delete

Definition at line 89 of file NuxCore.h.

#define INLDELETEARRAY   delete []

Definition at line 90 of file NuxCore.h.

#define INLNEW   new

Definition at line 88 of file NuxCore.h.

#define inlUTF16ToUTF8 (   s)    (const char*)nux::NUTF8(s)

Definition at line 303 of file NuxCore.h.

#define inlUTF8ToUTF16 (   s)    (const wchar_t*)nux::NUTF16(s)

Definition at line 304 of file NuxCore.h.

#define MAKEPATH_S (   path,
  numberOfElements,
  Drive,
  Dir,
  Filename,
  Extension 
)    _makepath(path, Drive, Dir, Filename, Extension)

Definition at line 382 of file NuxCore.h.

#define NUX_ARRAY_SIZE (   array)    (sizeof(array) / sizeof((array)[0]))

Definition at line 119 of file NuxCore.h.

#define NUX_BACKSLASH_CHAR   TEXT('\\')

Definition at line 331 of file NuxCore.h.

#define NUX_BACKSLASH_STRING   TEXT("\\")

Definition at line 332 of file NuxCore.h.

Definition at line 487 of file NuxCore.h.

#define NUX_CONST_CAST (   a,
 
)    const_cast<a>(b)

Definition at line 72 of file NuxCore.h.

#define NUX_DYNAMIC_CAST (   a,
 
)    dynamic_cast<a>(b)

Definition at line 73 of file NuxCore.h.

#define NUX_ERROR_IF_FALSE (   test,
  str,
  ... 
)    if(!(test)) LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);

Definition at line 95 of file NuxCore.h.

#define NUX_ERROR_IF_NULL (   test,
  str,
  ... 
)    if((test) == 0) LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);

Definition at line 93 of file NuxCore.h.

#define NUX_ERROR_IF_TRUE (   test,
  str,
  ... 
)    if(test) LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);

Definition at line 94 of file NuxCore.h.

Definition at line 486 of file NuxCore.h.

#define NUX_IN

Definition at line 78 of file NuxCore.h.

#define NUX_INVALID_HANDLE   -1

Definition at line 76 of file NuxCore.h.

#define NUX_INVALID_INDEX   -1

Definition at line 75 of file NuxCore.h.

#define NUX_MACOSX_LINE_TERMINATOR   TEXT("\n")

Definition at line 314 of file NuxCore.h.

#define NUX_MAKEFOURCHARTAG (   ch0,
  ch1,
  ch2,
  ch3 
)
Value:
((DWORD)(BYTE)(ch0) |               \
    ((DWORD)(BYTE)(ch1) << 8) |         \
    ((DWORD)(BYTE)(ch2) << 16) |        \
    ((DWORD)(BYTE)(ch3) << 24 ))

Definition at line 81 of file NuxCore.h.

#define NUX_MAX_FILEPATH_SIZE   1024

Definition at line 336 of file NuxCore.h.

#define NUX_OUT

Definition at line 79 of file NuxCore.h.

#define NUX_REINTERPRET_CAST (   a,
 
)    reinterpret_cast<a>(b)

Definition at line 71 of file NuxCore.h.

#define NUX_RETURN_IF_FAIL (   test)    if(!(test)) return;

Definition at line 101 of file NuxCore.h.

#define NUX_RETURN_IF_FALSE (   test)    if(!(test)) return;

Definition at line 100 of file NuxCore.h.

#define NUX_RETURN_IF_NOTNULL (   test)    if((test) != 0) return;

Definition at line 98 of file NuxCore.h.

#define NUX_RETURN_IF_NULL (   test)    if((test) == 0) return;

Definition at line 97 of file NuxCore.h.

#define NUX_RETURN_IF_TRUE (   test)    if(test) return;

Definition at line 99 of file NuxCore.h.

#define NUX_RETURN_VALUE_IF_FALSE (   test,
  value 
)    if(!(test)) return value;

Definition at line 106 of file NuxCore.h.

#define NUX_RETURN_VALUE_IF_NOTNULL (   test,
  value 
)    if((test) != 0) return value;

Definition at line 104 of file NuxCore.h.

#define NUX_RETURN_VALUE_IF_NULL (   test,
  value 
)    if((test) == 0) return value;

Definition at line 103 of file NuxCore.h.

#define NUX_RETURN_VALUE_IF_TRUE (   test,
  value 
)    if(test) return value;

Definition at line 105 of file NuxCore.h.

#define NUX_RUNTIME_ERROR (   str,
  ... 
)    LogOutputErrorMessage(__FILE__, __LINE__, str, ##__VA_ARGS__);

Definition at line 92 of file NuxCore.h.

#define NUX_SLASH_CHAR   TEXT('/')

Definition at line 333 of file NuxCore.h.

#define NUX_SLASH_STRING   TEXT("/")

Definition at line 334 of file NuxCore.h.

#define NUX_STATIC_CAST (   a,
 
)    static_cast<a>(b)

Definition at line 70 of file NuxCore.h.

#define NUX_UNIX_LINE_TERMINATOR   TEXT("\n")

Definition at line 313 of file NuxCore.h.

#define NUX_WIN32_LINE_TERMINATOR   TEXT("\r\n")

Definition at line 312 of file NuxCore.h.

#define nuxAlertMsg (   str,
  ... 
)    { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_ALERT, str, ##__VA_ARGS__);}

Definition at line 178 of file NuxCore.h.

#define nuxAssert (   expr)    {}

Definition at line 258 of file NuxCore.h.

#define nuxAssertAtCompileTime (   expr)    {}

Definition at line 265 of file NuxCore.h.

#define nuxAssertMsg (   expr,
  msg,
  ... 
)    {}

Definition at line 260 of file NuxCore.h.

#define nuxAssertNoEntry ( )    {}

Definition at line 262 of file NuxCore.h.

#define nuxAssertNoRecursion ( )    {}

Definition at line 264 of file NuxCore.h.

#define nuxAssertNoReentry ( )    {}

Definition at line 263 of file NuxCore.h.

#define nuxCriticalMsg (   str,
  ... 
)    { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_CRITICAL, str, ##__VA_ARGS__);}

Definition at line 179 of file NuxCore.h.

#define nuxDebugMsg (   a,
  ... 
)

Definition at line 256 of file NuxCore.h.

#define nuxError (   a,
  ... 
)    {}

Definition at line 257 of file NuxCore.h.

#define nuxIsDebuggerPresent ( )    0

Definition at line 475 of file NuxCore.h.

#define nuxOkMsg (   str,
  ... 
)    { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_INFO, str, ##__VA_ARGS__);}

Definition at line 176 of file NuxCore.h.

#define nuxVerifyExpr (   expr)    { if(!(expr)) {} }

Definition at line 259 of file NuxCore.h.

#define nuxVerifyExprMsg (   expr,
  a,
  ... 
)    { if(!(expr)) {} }

Definition at line 261 of file NuxCore.h.

#define nuxWarningMsg (   str,
  ... 
)    { nux::LogOutputSeverityMessage(nux::NUX_MSG_SEVERITY_WARNING, str, ##__VA_ARGS__);}

Definition at line 177 of file NuxCore.h.

#define SNPRINTF_S (   strDest,
  numberOfElements,
  Count,
  format,
  ... 
)    _sntprintf(strDest, Count, format, ##__VA_ARGS__)

Definition at line 372 of file NuxCore.h.

#define SNSCANF_S (   input,
  length,
  format,
  ... 
)    _sntscanf(input, length, format, ##__VA_ARGS__)

Definition at line 385 of file NuxCore.h.

#define SPLITPATH_S (   path,
  Drive,
  DriveNumElements,
  Dir,
  DirNumElements,
  Filename,
  FileNumElements,
  Extension,
  ExtNumElements 
)    _tsplitpath(path, Drive, Dir, Filename, Extension)

Definition at line 381 of file NuxCore.h.

#define SPRINTF_S (   strDest,
  numberOfElements,
  format,
  ... 
)    _stprintf(strDest, format, ##__VA_ARGS__)

Definition at line 371 of file NuxCore.h.

#define SSCANF_S (   buffer,
  format,
  ... 
)    _stscanf(buffer, format, ##__VA_ARGS__)

Definition at line 384 of file NuxCore.h.

#define STRCAT_S (   strDest,
  numberOfElements,
  strSource 
)    _tcscat(strDest, strSource)

Definition at line 367 of file NuxCore.h.

#define STRCPY_S (   strDest,
  numberOfElements,
  strSource 
)    _tcscpy(strDest, strSource)

Definition at line 366 of file NuxCore.h.

#define STRDATE_S (   strDest,
  numberOfElements 
)    _tstrdate(strDest)

Definition at line 374 of file NuxCore.h.

#define STRLEN_S (   str,
  numberOfElements 
)    _tcslen(str)

Definition at line 379 of file NuxCore.h.

#define STRNCPY_S (   strDest,
  numberOfElements,
  strSource,
  count 
)    _tcsncpy(strDest, strSource, count)

Definition at line 365 of file NuxCore.h.

#define STRTIME_S (   strDest,
  numberOfElements 
)    _tstrtime(strDest)

Definition at line 375 of file NuxCore.h.

#define TCHAR_TO_ANSI (   str)    str

Definition at line 275 of file NuxCore.h.

Definition at line 309 of file NuxCore.h.

Definition at line 310 of file NuxCore.h.

#define TCHARToUTF16 (   str)    (const wchar_t*)NUTF16(str)

Definition at line 281 of file NuxCore.h.

#define TCHARToUTF8 (   str)    str

Definition at line 279 of file NuxCore.h.

#define tfstream   std::fstream

Definition at line 419 of file NuxCore.h.

#define tiostream   std::iostream

Definition at line 417 of file NuxCore.h.

#define tistream   std::istream

Definition at line 416 of file NuxCore.h.

#define tofstream   std::ofstream

Definition at line 418 of file NuxCore.h.

#define tostream   std::ostream

Definition at line 415 of file NuxCore.h.

#define tstring   std::string

Definition at line 414 of file NuxCore.h.

Definition at line 307 of file NuxCore.h.

#define UTF16ToTCHAR (   str)    (const char*)NUTF8(str)

Definition at line 280 of file NuxCore.h.

#define UTF8ToTCHAR (   str)    str

Definition at line 278 of file NuxCore.h.

#define VARARG_BODY (   FuncRet,
  FuncName,
  FmtType,
  ExtraParamDecl 
)    FuncRet FuncName( ExtraParamDecl FmtType Fmt, ... )

Definition at line 615 of file NuxCore.h.

#define VARARG_DECL (   FuncRet,
  StaticFuncRet,
  Return,
  FuncName,
  Pure,
  FmtType,
  ExtraParamDecl,
  ExtraParam 
)    FuncRet FuncName( ExtraParamDecl FmtType Fmt, ... ) Pure

Definition at line 613 of file NuxCore.h.

#define VARARG_EXTRA (   A)    A,

Definition at line 495 of file NuxCore.h.

#define VARARG_NONE

Definition at line 496 of file NuxCore.h.

#define VARARG_PURE   =0

Definition at line 497 of file NuxCore.h.

#define VSNPRINTF_S (   strDest,
  numberOfElements,
  Count,
  format,
  VA_Arg_List 
)    vsnprintf(strDest, Count, format, VA_Arg_List)

Definition at line 369 of file NuxCore.h.

#define VSNTPRINTF_S (   strDest,
  numberOfElements,
  Count,
  format,
  VA_Arg_List 
)    _vsntprintf(strDest, Count, format, VA_Arg_List)

Definition at line 370 of file NuxCore.h.

#define WCSNCPY_S (   strDest,
  numberOfElements,
  strSource,
  count 
)    wcsncpy (strDest, strSource, count)

Definition at line 364 of file NuxCore.h.