setting the speed for the future of games programming
vectorc

contentsclose
 

VECTORC PREDEFINED MACROS

VectorC predefines the following macros in all C source files. Some macros are only included for compatibility and map to keywords that are not supported in VectorC.  You will receive error messages if you use these macros.
 

Macro Names

Macro Values

Condition

Comments

near
_near
__near
Always
All pointers in VectorC are "near"
far
_far
__far
Always
* __far is not supported in VectorC as it should not be used in Win32's flat memory model.
huge
_huge
__huge
Always
* __huge is only for 16-bit programs and so is not supported
_base __based
Always
* __based pointers are not supported in VectorC
_segment __segment
Always
* not supported in VectorC
_segname __segname
Always
* not supported in VectorC
_self __self
Always
* not supported in VectorC
_cdecl __cdecl
Always
Normal Microsoft calling conventions
cdecl _cdecl
Always
Normal Microsoft calling conventions
pascal
_pascal
_Pascal
__pascal
Always
Pascal calling conventions
fortran
_fortran
__fortran
Always
* not supported in VectorC
_fastcall __fastcall
Always
Microsoft register based calling conventions
interrupt
_interrupt
__interrupt
Always
* not supported in VectorC
_export __export
Always
Export from DLL/executable
_loadds __loadds
Always
* not supported in VectorC
_saveregs __saveregs
Always
* not supported in VectorC
_syscall
_System
SOMLINK
SOMDLINK
__syscall
Always
OS/2 calling conventions
_asm __asm
Always
Inline assembly
alloca
_alloca
__alloca
Always
Allocate memory on the stack
__NT__
_WIN32
 
Always
Defined to show compiling for Win32
__FLAT__  
Always
Defined to show compiling for flat memory model
_M_IX86
_M_I386
600
Always
Defined to show compiling for Pentium Pro and above
M_I386
M_I386FM
_M_I386FM
__386__
__X86__
 
Always
Defined to show compiling for Intel architecture
_inline
__inline
inline
Always
Call procedure inline
_STDCALL_SUPPORTED  
Always
Defined to show that stdcall calling conventions are supported
__WINDOWS_386__  
Always
Defined to show compiling for 386 Windows
_INTEGRAL_MAX_BITS 64
Always
Defined to show that the largest supported ints are 64-bits
_PUSHPOP_SUPPORTED  
Always
Defined to show #pragma pack(push) and #pragma pack(pop) supported
_MSC_VER 600
Always
Defined to show compatibility with Microsoft C version 6
__VECTORC  
Always
Defined to show compiling with VectorC
__GNUCC__  
GNU
Compatibility
enabled
Defined to show GNU compatibility is enabled
typeof __typeof__
GNU
Compatibility
enabled
Applies the type of an expression to a declaration
__MMX__ 1
Target processor
supports MMX
Defined to show when compiling for a processor that supports MMX
__3DNow__ 1
Target processor
supports 3DNow
Defined to show when compiling for a processor that supports AMD 3D Now!
__SSE__ 1
Target processor
supports SSE
Defined to show when compiling for a processor that supports Intel Streaming SIMD Extensions


top

contentsclose