C Pragmas (original) (raw)

Microsoft Specific

A pragma instructs the compiler to perform a particular action at compile time. Pragmas vary from compiler to compiler. For example, you can use the optimize pragma to set the optimizations to perform on your program. The Microsoft C pragmas are:

alloc_text
auto_inline
bss_seg
check_stack
code_seg
comment
component
const_seg
data_seg
deprecated

detect_mismatch
fenv_access
float_control
fp_contract
function
hdrstop
include_alias
inline_depth
inline_recursion

intrinsic
make_public
managed
message
omp
once
optimize
pack
pop_macro

push_macro
region, endregion
runtime_checks
section
setlocale
strict_gs_check
system_header
unmanaged
warning

See Pragma Directives and the __Pragma Keyword for a description of the Microsoft C compiler pragmas.

END Microsoft Specific

See also

Source Files and Source Programs