pragma 是一条编译器的预处理命令,翻译为中文是杂注,编译注释的意思,常见的用法如下例:
#pragma comment(lib,"msvcprtd")
#pragma comment(lib,"uuid.lib")
#pragma comment(linker,"/manifestdependency:\"type='win32' " \
#pragma deprecated (UpdateICMRegKeyA)
#pragma function(_disable)
#pragma function(_enable)
#pragma intrinsic(_BitScanForward)
#pragma intrinsic(_rotr)
#pragma intrinsic(_rotr64)
#pragma once
#pragma pack()
#pragma pack(4)
#pragma pack(pop)
#pragma pack(push, 8)
#pragma pack(push,1)
#pragma pack(push,2)
#pragma pack(push,4)
#pragma pack(push,8)
#pragma warning( disable : 4141 )
#pragma warning( disable : 4793 4141 )
#pragma warning(disable:4996)
#pragma warning(pop)
#pragma warning(push)