#pragma编译指令汇总

#pragma check_stack (off)
#pragma check_stack


structs the compiler to turn off stack probes if off (or –) is specified, or to turn on stack probes if on (or +) is specified. 

 
#pragma check_stack([ {on | off}] )
#pragma check_stack{+ | –}
 

Remarks
If no argument is given, stack probes are treated according to the default. This pragma takes effect at the first function defined after the pragma is seen. Stack probes are neither a part of macros nor of functions that are generated inline.

If you don't give an argument for the check_stack pragma, stack checking reverts to the behavior specified on the command line. For more information, see Compiler Reference. The interaction of the #pragma check_stack and the /Gs option is summarized in the following table.


#pragma check_stack (off)在函数无参数时有点类似于__declspec(naked)



原文地址:https://www.cnblogs.com/daxingxing/p/2360914.html