关于#pragma参数的问题,很急

Balloon_333 2008-04-10 03:24:49
#pragma conform(forScope, push, i, off)
#include <xxxx.h>
#include <xxxx.h>
.....
#pragma conform(forScope, pop, i)

上面一段代码是什么意思啊,请各位大侠不吝赐教,谢了.
...全文
85 2 打赏 收藏 举报
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sheenl 2008-04-10
  • 打赏
  • 举报
回复
改变for循环的变量作用域
  • 打赏
  • 举报
回复
C++ Specific

Specifies the run-time behavior of the /Zc:forScope compiler option.


#pragma conform(name [, show ] [, on | off ] [ [, push | pop ] [, identifier ] ] )


Parameters
name
Specifies the name of the compiler option to be modified. The only valid name is forScope.

show (optional)
Causes the current setting of name (true or false) to be displayed by means of a warning message during compilation. For example, #pragma conform(forScope, show).

on, off(optional)
Setting name to on enables the /Zc:forScope compiler option. The default is off.

push (optional)
Pushes the current value of name onto the internal compiler stack. If you specify identifier, you can specify the on or off value for name to be pushed onto the stack. For example, #pragma conform(forScope, push, myname, on).

pop (optional)
Sets the value of name to the value at the top of the internal compiler stack and then pops the stack. If identifier is specified with pop, the stack will be popped back until it finds the record with identifier, which will also be popped; the current value for name in the next record on the stack becomes the new value for name. If you specify pop with an identifier that is not in a record on the stack, the pop is ignored.

identifier(optional)
Can be included with a push or pop command. If identifier is used, then an on or off specifier can also be used.
相关推荐
发帖
C++ 语言

6.3w+

社区成员

C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
帖子事件
创建了帖子
2008-04-10 03:24
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下