You.i Engine
YiPredef.h File Reference
#include <framework/YiPredefPlatform.h>
#include <utility/YiPreprocessorMacros.h>
#include <cstdint>
#include "deprecated/YiPredefDeprecated.h"

Go to the source code of this file.

Classes

struct  YI_POINT
 
struct  YI_POINT2D
 
struct  YI_RECT
 
struct  YI_RECT_REL
 
struct  YI_FLOAT_RECT
 
struct  YI_FLOAT_RECT_REL
 

Macros

#define YI_DRAW_SKIP
 
#define YI_ENV_32   1
 
#define strcat(dst, src)   YI_ERROR("strcat: Does not check for buffer overflows when concatenating to destination (CWE-120). Consider using YI_STRNCAT, strcat_s, or strlcat (warning, YI_STRNCAT is easily misused).")
 
#define strcpy(dst, src)   YI_ERROR("strcpy: Does not check for buffer overflows when copying to destination (CWE-120). Consider using YI_STRNCPY, strcpy_s, or strlcpy (warning, YI_STRNCAT is easily misused).")
 
#define sprintf(str, fmt, ...)   YI_ERROR("sprintf: Does not check for buffer overflows (CWE-120). Use YI_SNPRINTF, YI_VSNPRINTF, or sprintf_s.")
 
#define gets(str)   YI_ERROR("gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.")
 
#define wcscpy(dst, src)   YI_ERROR("wcscpy: Does not check for buffer overflows when copying to destination (CWE-120). Consider using a function version that stops copying at the end of the buffer.")
 
#define wcscat(dst, src)   YI_ERROR("wcscat: Does not check for buffer overflows when concatenating to destination (CWE-120).")
 
#define swprintf(str, fmt, ...)   YI_ERROR("swprintf: Does not check for buffer overflows (CWE-120). Use YI_SNPRINTF, YI_VSNPRINTF, or sprintf_s.")
 
#define YI_DISABLE_URL_SECURITY
 
#define YI_WTEXT(quote)   (const wchar_t *)L##quote
 
#define YI_TEXT(quote)   (const char *)quote
 
#define YI_TEXT16(quote)   (const char16_t *)L##quote
 
#define YI_TEXT32(quote)   (const char32_t *)L##quote
 
#define YI_INLINE
 
#define YI_EXTERNINLINE
 
#define YI_SEEK_SET   0
 
#define YI_SEEK_END   1
 
#define YI_SEEK_CUR   2
 
#define YI_MAX_PATH   260
 
#define YI_MAX_BUFFER   1024
 
#define YI_MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define YI_MAX(a, b)   (((a) < (b)) ? (b) : (a))
 
#define YI_FLOAT_EQUAL(a, b)   ((a) >= ((b) - FLT_EPSILON) && (a) <= ((b) + FLT_EPSILON))
 
#define YI_UNUSED(param)   (void)(param)
 
#define YI_UNUSED_ATTRIBUTE   __attribute__((unused))
 
#define YI_FORCE_INLINE   inline
 
#define YI_FUNCTION_SPECIALIZATION_FULLY_SUPPORTED
 
#define YI_DISALLOW_COPY_AND_ASSIGN(TypeName)
 Delete the copy constructor and assignment operator (and consequently the move constructor as well) More...
 
#define YI_DEFAULT_MOVE_AND_COPY(TypeName)
 Explicitly define the copy constructor and move constructor, as well as assignment operators for each. More...
 
#define YI_DEFAULT_MOVE_NO_COPY(TypeName)
 Explicitly define the default move constructor and assignment operator, but disallow copying. More...
 
#define YI_DEFAULT_MOVE(TypeName)
 Explicitly define the default move constructor and assignment operator. More...
 
#define YI_DEFAULT_COPY(TypeName)
 Explicitly define the default copy constructor and assignment operator. More...
 
#define YI_REMOVE_CONSTANT_CONDITION(x)   do { x } while ((void)0, 0)
 This is a C++ trick for avoiding constant condition warnings, particularly in Microsoft compilers. More...
 
#define YI_LITTLE_ENDIAN_16(a)   (a)
 
#define YI_LITTLE_ENDIAN_24(a)   (a)
 
#define YI_LITTLE_ENDIAN_32(a)   (a)
 
#define YI_LITTLE_ENDIAN_64(a)   (a)
 

Enumerations

enum  YI_BUFFER_REORENT {
  YI_BUFFER_REORIENT_0_DEGREES = 0,
  YI_BUFFER_REORIENT_90_DEGREES,
  YI_BUFFER_REORIENT_180_DEGREES,
  YI_BUFFER_REORIENT_270_DEGREES,
  YI_BUFFER_REORIENT_FLIPHORIZ,
  YI_BUFFER_REORIENT_FLIPVERT,
  YI_BUFFER_REORIENT_LIMIT
}
 

Functions

bool operator== (const YI_RECT &rLHS, const YI_RECT &rRHS)
 
bool operator!= (const YI_RECT &rLHS, const YI_RECT &rRHS)
 
bool operator== (const YI_RECT_REL &rLHS, const YI_RECT_REL &rRHS)
 
bool operator!= (const YI_RECT_REL &rLHS, const YI_RECT_REL &rRHS)
 
bool operator< (const YI_FLOAT_RECT &lhs, const YI_FLOAT_RECT &rhs)
 
bool operator> (const YI_FLOAT_RECT &lhs, const YI_FLOAT_RECT &rhs)
 
bool operator<= (const YI_FLOAT_RECT &lhs, const YI_FLOAT_RECT &rhs)
 
bool operator>= (const YI_FLOAT_RECT &lhs, const YI_FLOAT_RECT &rhs)
 
bool operator== (const YI_FLOAT_RECT &rLHS, const YI_FLOAT_RECT &rRHS)
 
bool operator!= (const YI_FLOAT_RECT &rLHS, const YI_FLOAT_RECT &rRHS)
 
bool operator== (const YI_FLOAT_RECT_REL &rLHS, const YI_FLOAT_RECT_REL &rRHS)
 
bool operator!= (const YI_FLOAT_RECT_REL &rLHS, const YI_FLOAT_RECT_REL &rRHS)
 

Macro Definition Documentation

#define YI_DRAW_SKIP