You.i Engine
YiPredef.h File Reference
#include <cfloat>
#include <cstdint>
#include <framework/YiPredefPlatform.h>
#include <cstring>
#include <wchar.h>

Go to the source code of this file.

Macros

#define YI_FULLY_SUPPORTS_CPP14_CONSTEXPR   1
 
#define YI_IS_LITTLE_ENDIAN   1
 
#define YI_NO_INLINE   __attribute__((noinline))
 
#define YI_FORCE_INLINE   __attribute__((always_inline)) inline
 
#define YI_SYNCHRONIZATION_OBJECT_INIT_VALUE
 
#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 strcat(dst, src)   static_assert(false, "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)   static_assert(false, "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 gets(str)   static_assert(false, "gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.")
 
#define wcscpy(dst, src)   static_assert(false, "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)   static_assert(false, "wcscat: Does not check for buffer overflows when concatenating to destination (CWE-120).")
 
#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_ASSERT(...)   static_assert(false, "Missing #include <utility/YiError.h> in this source file.")
 
#define YI_LOGD(...)   static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")
 
#define YI_LOGI(...)   static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")
 
#define YI_LOGW(...)   static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")
 
#define YI_LOGE(...)   static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")
 
#define YI_LOGF(...)   static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")
 
#define YI_SLEEP(...)   static_assert(false, "Missing #include <utility/YiTimeUtilities.h> in this source file.")
 
#define YI_USLEEP(...)   static_assert(false, "Missing #include <utility/YiTimeUtilities.h> in this source file.")
 
#define YI_FILE(...)   static_assert(false, "Missing #include <utility/YiFileUtilities.h> in this source file.")
 
#define YI_MEMSET(...)   static_assert(false, "Missing #include <utility/YiMemoryUtilities.h> in this source file.")
 

Functions

template<typename T , typename... Args>
int sprintf (T &&, Args &&...)
 

Macro Definition Documentation

◆ YI_ASSERT

#define YI_ASSERT (   ...)    static_assert(false, "Missing #include <utility/YiError.h> in this source file.")

◆ YI_FILE

#define YI_FILE (   ...)    static_assert(false, "Missing #include <utility/YiFileUtilities.h> in this source file.")

◆ YI_LOGD

#define YI_LOGD (   ...)    static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")

◆ YI_LOGE

#define YI_LOGE (   ...)    static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")

◆ YI_LOGF

#define YI_LOGF (   ...)    static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")

◆ YI_LOGI

#define YI_LOGI (   ...)    static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")

◆ YI_LOGW

#define YI_LOGW (   ...)    static_assert(false, "Missing #include <logging/YiLogger.h> in this source file.")

◆ YI_MEMSET

#define YI_MEMSET (   ...)    static_assert(false, "Missing #include <utility/YiMemoryUtilities.h> in this source file.")

◆ YI_SLEEP

#define YI_SLEEP (   ...)    static_assert(false, "Missing #include <utility/YiTimeUtilities.h> in this source file.")

◆ YI_USLEEP

#define YI_USLEEP (   ...)    static_assert(false, "Missing #include <utility/YiTimeUtilities.h> in this source file.")