|  | Pyrogenesis HEAD
    Pyrogenesis, a RTS Engine | 
#include "precompiled.h"#include <cstdio>#include <cstring>#include <cerrno>#include <cstdarg>#include "lib/secure_crt.h"

| Macros | |
| #define | tchar char | 
| #define | tstring std::string | 
| #define | T(string_literal) string_literal | 
| #define | tnlen strnlen | 
| #define | tncpy_s strncpy_s | 
| #define | tcpy_s strcpy_s | 
| #define | tncat_s strncat_s | 
| #define | tcat_s strcat_s | 
| #define | tcmp strcmp | 
| #define | tcpy strcpy | 
| #define | tvsnprintf vsnprintf | 
| #define | tvsprintf_s vsprintf_s | 
| #define | tsprintf_s sprintf_s | 
| #define | ENFORCE(condition, err_to_warn, retval) | 
| #define | WARN_IF_PTR_LEN(len) | 
| Functions | |
| STATUS_ADD_DEFINITIONS (secureCrtStatusDefinitions) | |
| size_t | tnlen (const tchar *str, size_t max_len) | 
| int | tncpy_s (tchar *dst, size_t max_dst_chars, const tchar *src, size_t max_src_chars) | 
| int | tcpy_s (tchar *dst, size_t max_dst_chars, const tchar *src) | 
| int | tncat_s (tchar *dst, size_t max_dst_chars, const tchar *src, size_t max_src_chars) | 
| int | tcat_s (tchar *dst, size_t max_dst_chars, const tchar *src) | 
| int | tvsprintf_s (tchar *dst, size_t max_dst_chars, const tchar *fmt, va_list ap) | 
| int | tsprintf_s (tchar *buf, size_t max_chars, const tchar *fmt,...) | 
| Variables | |
| static const StatusDefinition | secureCrtStatusDefinitions [] | 
| #define ENFORCE | ( | condition, | |
| err_to_warn, | |||
| retval | |||
| ) | 
| #define T | ( | string_literal | ) | string_literal | 
| #define tcat_s strcat_s | 
| #define tchar char | 
| #define tcmp strcmp | 
| #define tcpy strcpy | 
| #define tcpy_s strcpy_s | 
| #define tncat_s strncat_s | 
| #define tncpy_s strncpy_s | 
| #define tnlen strnlen | 
| #define tsprintf_s sprintf_s | 
| #define tstring std::string | 
| #define tvsnprintf vsnprintf | 
| #define tvsprintf_s vsprintf_s | 
| #define WARN_IF_PTR_LEN | ( | len | ) | 
| STATUS_ADD_DEFINITIONS | ( | secureCrtStatusDefinitions | ) | 
| size_t tnlen | ( | const tchar * | str, | 
| size_t | max_len | ||
| ) | 
| 
 | static |