Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
WindowsPlatformCompilerPreSetup.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
 
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS    __pragma (warning(pop))
 
#define PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
 
#define PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS    __pragma(warning(pop))
 
#define PRAGMA_DISABLE_UNSAFE_TYPECAST_WARNINGS
 
#define PRAGMA_ENABLE_UNSAFE_TYPECAST_WARNINGS    UE_DEPRECATED_MACRO(5.0, "The PRAGMA_ENABLE_UNSAFE_TYPECAST_WARNINGS macro has been deprecated in favor of PRAGMA_RESTORE_UNSAFE_TYPECAST_WARNINGS. To force enable warnings use PRAGMA_FORCE_UNSAFE_TYPECAST_WARNINGS.")
 
#define PRAGMA_FORCE_UNSAFE_TYPECAST_WARNINGS
 
#define PRAGMA_RESTORE_UNSAFE_TYPECAST_WARNINGS    __pragma(warning(pop))
 
#define PRAGMA_DISABLE_UNDEFINED_IDENTIFIER_WARNINGS
 
#define PRAGMA_ENABLE_UNDEFINED_IDENTIFIER_WARNINGS    __pragma(warning(pop))
 
#define PRAGMA_DISABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS
 
#define PRAGMA_ENABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS    __pragma(warning(pop))
 
#define PRAGMA_DISABLE_REORDER_WARNINGS
 
#define PRAGMA_ENABLE_REORDER_WARNINGS    __pragma(warning(pop))
 
#define PRAGMA_DISABLE_REGISTER_WARNINGS
 
#define PRAGMA_ENABLE_REGISTER_WARNINGS    __pragma(warning(pop))
 
#define PRAGMA_DISABLE_UNUSED_PRIVATE_FIELDS_WARNINGS
 
#define PRAGMA_ENABLE_UNUSED_PRIVATE_FIELDS_WARNINGS
 
#define PRAGMA_DISABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS
 
#define PRAGMA_ENABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS
 
#define PRAGMA_POP    __pragma(warning(pop))
 
#define PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING    __pragma(pack(push, 8))
 
#define PRAGMA_POP_PLATFORM_DEFAULT_PACKING    __pragma(pack(pop))
 
#define THIRD_PARTY_INCLUDES_START
 
#define THIRD_PARTY_INCLUDES_END
 
#define EMIT_CUSTOM_WARNING_AT_LINE(Line, Warning)    __pragma(message(WARNING_LOCATION(Line) ": warning C4996: " Warning))
 

Macro Definition Documentation

◆ EMIT_CUSTOM_WARNING_AT_LINE

#define EMIT_CUSTOM_WARNING_AT_LINE ( Line,
Warning )    __pragma(message(WARNING_LOCATION(Line) ": warning C4996: " Warning))

Definition at line 234 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_DEPRECATION_WARNINGS

#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Value:
__pragma (warning(disable: 4995)) /* 'function': name was marked as #pragma deprecated */ \
__pragma (warning(disable: 4996)) /* The compiler encountered a deprecated declaration. */

Definition at line 55 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS

#define PRAGMA_DISABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS
Value:
__pragma(warning(disable: 4265)) /* class' : class has virtual functions, but destructor is not virtual */

Definition at line 115 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_REGISTER_WARNINGS

#define PRAGMA_DISABLE_REGISTER_WARNINGS
Value:
__pragma(warning(disable: 5033)) /* 'register' is no longer a supported storage class */

Definition at line 137 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_REORDER_WARNINGS

#define PRAGMA_DISABLE_REORDER_WARNINGS
Value:
__pragma(warning(disable: 5038)) /* data member 'member1' will be initialized after data member 'member2' data member 'member' will be initialized after base class 'base_class' */

Definition at line 126 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS

#define PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
Value:
__pragma (warning(disable: 4456)) /* declaration of 'LocalVariable' hides previous local declaration */ \
__pragma (warning(disable: 4457)) /* declaration of 'LocalVariable' hides function parameter */ \
__pragma (warning(disable: 4458)) /* declaration of 'LocalVariable' hides class member */ \
__pragma (warning(disable: 4459)) /* declaration of 'LocalVariable' hides global declaration */ \
__pragma (warning(disable: 6244)) /* local declaration of <variable> hides previous declaration at <line> of <file> */

Definition at line 65 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_UNDEFINED_IDENTIFIER_WARNINGS

#define PRAGMA_DISABLE_UNDEFINED_IDENTIFIER_WARNINGS
Value:
__pragma(warning(disable: 4668)) /* 'symbol' is not defined as a preprocessor macro, replacing with '0' for 'directives' */

Definition at line 104 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS

#define PRAGMA_DISABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS

Definition at line 158 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_UNSAFE_TYPECAST_WARNINGS

#define PRAGMA_DISABLE_UNSAFE_TYPECAST_WARNINGS
Value:
__pragma (warning(disable: 4244)) /* 'argument': conversion from 'type1' to 'type2', possible loss of data */ \
__pragma (warning(disable: 4838)) /* 'argument': conversion from 'type1' to 'type2' requires a narrowing conversion */

Definition at line 80 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_DISABLE_UNUSED_PRIVATE_FIELDS_WARNINGS

#define PRAGMA_DISABLE_UNUSED_PRIVATE_FIELDS_WARNINGS

Definition at line 148 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_DEPRECATION_WARNINGS

#define PRAGMA_ENABLE_DEPRECATION_WARNINGS    __pragma (warning(pop))

Definition at line 60 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS

#define PRAGMA_ENABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS    __pragma(warning(pop))

Definition at line 121 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_REGISTER_WARNINGS

#define PRAGMA_ENABLE_REGISTER_WARNINGS    __pragma(warning(pop))

Definition at line 143 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_REORDER_WARNINGS

#define PRAGMA_ENABLE_REORDER_WARNINGS    __pragma(warning(pop))

Definition at line 132 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS

#define PRAGMA_ENABLE_SHADOW_VARIABLE_WARNINGS    __pragma(warning(pop))

Definition at line 75 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_UNDEFINED_IDENTIFIER_WARNINGS

#define PRAGMA_ENABLE_UNDEFINED_IDENTIFIER_WARNINGS    __pragma(warning(pop))

Definition at line 110 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS

#define PRAGMA_ENABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS

Definition at line 163 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_UNSAFE_TYPECAST_WARNINGS

#define PRAGMA_ENABLE_UNSAFE_TYPECAST_WARNINGS    UE_DEPRECATED_MACRO(5.0, "The PRAGMA_ENABLE_UNSAFE_TYPECAST_WARNINGS macro has been deprecated in favor of PRAGMA_RESTORE_UNSAFE_TYPECAST_WARNINGS. To force enable warnings use PRAGMA_FORCE_UNSAFE_TYPECAST_WARNINGS.")

Definition at line 87 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_ENABLE_UNUSED_PRIVATE_FIELDS_WARNINGS

#define PRAGMA_ENABLE_UNUSED_PRIVATE_FIELDS_WARNINGS

Definition at line 153 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_FORCE_UNSAFE_TYPECAST_WARNINGS

#define PRAGMA_FORCE_UNSAFE_TYPECAST_WARNINGS
Value:
__pragma (warning(error: 4244)) /* 'argument': conversion from 'type1' to 'type2', possible loss of data */ \
__pragma (warning(error: 4838)) /* 'argument': conversion from 'type1' to 'type2' requires a narrowing conversion */

Definition at line 92 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_POP

#define PRAGMA_POP    __pragma(warning(pop))

Definition at line 168 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_POP_PLATFORM_DEFAULT_PACKING

#define PRAGMA_POP_PLATFORM_DEFAULT_PACKING    __pragma(pack(pop))

Definition at line 187 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING

#define PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING    __pragma(pack(push, 8))

Definition at line 181 of file WindowsPlatformCompilerPreSetup.h.

◆ PRAGMA_RESTORE_UNSAFE_TYPECAST_WARNINGS

#define PRAGMA_RESTORE_UNSAFE_TYPECAST_WARNINGS    __pragma(warning(pop))

Definition at line 99 of file WindowsPlatformCompilerPreSetup.h.

◆ THIRD_PARTY_INCLUDES_END

◆ THIRD_PARTY_INCLUDES_START

#define THIRD_PARTY_INCLUDES_START
Value:
__pragma(warning(disable: 4125)) /* decimal digit terminates octal escape sequence. */ \
__pragma(warning(disable: 4510)) /* '<class>': default constructor could not be generated. */ \
__pragma(warning(disable: 4610)) /* object '<class>' can never be instantiated - user-defined constructor required. */ \
__pragma(warning(disable: 4800)) /* Implicit conversion from '<type>' to bool. Possible information loss. */ \
__pragma(warning(disable: 4946)) /* reinterpret_cast used between related classes: '<class1>' and '<class2>' */ \
__pragma(warning(disable: 4996)) /* '<obj>' was declared deprecated. */ \
__pragma(warning(disable: 6011)) /* Dereferencing NULL pointer '<ptr>'. */ \
__pragma(warning(disable: 6101)) /* Returning uninitialized memory '<expr>'. A successful path through the function does not set the named _Out_ parameter. */ \
__pragma(warning(disable: 6287)) /* Redundant code: the left and right sub-expressions are identical. */ \
__pragma(warning(disable: 6308)) /* 'realloc' might return null pointer: assigning null pointer to 'X', which is passed as an argument to 'realloc', will cause the original memory block to be leaked. */ \
__pragma(warning(disable: 6326)) /* Potential comparison of a constant with another constant. */ \
__pragma(warning(disable: 6340)) /* Mismatch on sign: Incorrect type passed as parameter in call to function. */ \
__pragma(warning(disable: 6385)) /* Reading invalid data from '<ptr>': the readable size is '<num1>' bytes, but '<num2>' bytes may be read. */ \
__pragma(warning(disable: 6386)) /* Buffer overrun while writing to '<ptr>': the writable size is '<num1>' bytes, but '<num2>' bytes might be written. */ \
__pragma(warning(disable: 6553)) /* The annotation for function '<func>' on _Param_(<num>) does not apply to a value type. */ \
__pragma(warning(disable: 28182)) /* Dereferencing NULL pointer. '<ptr1>' contains the same NULL value as '<ptr2>' did. */ \
__pragma(warning(disable: 28251)) /* Inconsistent annotation for '<func>': this instance has no annotations. */ \
__pragma(warning(disable: 28252)) /* Inconsistent annotation for '<func>': return/function has '<annotation>' on the prior instance. */ \
__pragma(warning(disable: 28253)) /* Inconsistent annotation for '<func>': _Param_(<num>) has '<annotation>' on the prior instance. */ \
__pragma(warning(disable: 28301)) /* No annotations for first declaration of '<func>'. */ \
#define PRAGMA_DISABLE_UNINITIALIZED_CONST_REFERENCE_WARNINGS
#define PRAGMA_DISABLE_MISSING_VIRTUAL_DESTRUCTOR_WARNINGS
#define PRAGMA_DISABLE_UNDEFINED_IDENTIFIER_WARNINGS
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
#define PRAGMA_DISABLE_SHADOW_VARIABLE_WARNINGS
#define PRAGMA_DISABLE_REORDER_WARNINGS

Definition at line 193 of file WindowsPlatformCompilerPreSetup.h.