FS2_Open
Open source remastering of the Freespace 2 engine
msvc.h File Reference

Macros to abstract compiler capabilities for the MSVC toolchain. More...

#include <sal.h>

Go to the source code of this file.

Macros

#define SCP_FORMAT_STRING   _Printf_format_string_
 
#define SCP_FORMAT_STRING_ARGS(x, y)
 
#define __attribute__(x)
 
#define __UNUSED
 
#define __ALIGNED(x)   __declspec(align(x))
 
#define RESTRICT
 
#define ASSUME(x)
 
#define Assertion(expr, msg)
 
#define PTRDIFF_T_ARG   "%Iu"
 
#define SIZE_T_ARG   "%Id"
 
#define NOEXCEPT
 
#define likely(x)
 
#define unlikely(x)
 

Detailed Description

Macros to abstract compiler capabilities for the MSVC toolchain.

Definition in file msvc.h.

Macro Definition Documentation

#define __ALIGNED (   x)    __declspec(align(x))

Definition at line 27 of file msvc.h.

#define __attribute__ (   x)

Definition at line 25 of file msvc.h.

#define __UNUSED

Definition at line 26 of file msvc.h.

#define Assertion (   expr,
  msg 
)
Value:
do { \
if (!(expr)) { \
WinAssert(#expr, __FILE__, __LINE__); \
} while (0)
if(aifft_max_checks<=0)
Definition: aiturret.cpp:1581
void _cdecl WinAssert(char *text, char *filename, int line)
Definition: windebug.cpp:911

Definition at line 58 of file msvc.h.

#define ASSUME (   x)

Definition at line 37 of file msvc.h.

#define likely (   x)

Definition at line 84 of file msvc.h.

#define NOEXCEPT

Definition at line 79 of file msvc.h.

#define PTRDIFF_T_ARG   "%Iu"

Definition at line 74 of file msvc.h.

#define RESTRICT

Definition at line 34 of file msvc.h.

#define SCP_FORMAT_STRING   _Printf_format_string_

Definition at line 22 of file msvc.h.

#define SCP_FORMAT_STRING_ARGS (   x,
  y 
)

Definition at line 23 of file msvc.h.

#define SIZE_T_ARG   "%Id"

Definition at line 75 of file msvc.h.

#define unlikely (   x)

Definition at line 85 of file msvc.h.