UNREFERENCE_PARAMETER

以下摘自《http://zhidao.baidu.com/link?url=Zmq-EkUIF782nYYWmQ8jeCJaP7FLQljK0gqb0L-IHX8baGpxtd4liWFsTkdcY3YzqyFiZKoG-b1yQJatJI9oO_》


作用:告诉编译器,已经使用了该变量,不必检测警告!

在VC编译器下,如果您用最高级别进行编译,编译器就会很苛刻地指出您的非常细小的警告。当你生命了一个变量,而没有使用时,编译器就会报警告:

“warning C4100: ''XXXX'' : unreferenced formal parameter.”

所以,为了让编译器不必检测你的警告,就使用UNREFERENCED_PARAMETER语句。比如:

int SomeFunction(int arg1, int arg2)
{
UNREFERENCED_PARAMETER(arg2)
...
}

转载于:https://www.cnblogs.com/aoun/p/3834740.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Misc. Functions ........................................................................................................42 PBGBasisCell VBScript API .................................................................................................43 Atom List ..................................................................................................................44 Input Plane Manager .............................................................................................................44 Input Plane Object.................................................................................................................45 Methods for transverse ............................................................................................49 Methods for injection ................................................................................................52 ProfileMgr...............................................................................................................................56 ChannelProfile .......................................................................................................................56 ChannelProfileElement .........................................................................................................60 FiberProfile ............................................................................................................................66 FiberProfileElement ..............................................................................................................69 VBScript for 3D Shapes ........................................................................................................74 3D Shape Manager ................................................................................................................74 3D Shape Generic....................................................................................................74 Sphere ....................................................................................................................................76 Ellipsoid .................................................................................................................................76 Block.......................................................................................................................................77 Cylinder ..................................................................................................................................78 Observation Point Manager..................................................................................................79 Observation Point.....................................................................................................79 Observation Area .....................................................................................................82 Observation Line ......................................................................................................84 2D Simulation Parameter Manager and 3D Simulation Parameter Manager ...................86 Wafer Parameters Manager ..................................................................................................90 Power Transmittance Calculations - Observation Line .....................................................92Table of contents Technical support ...................................................................................................................2 Table of contents ........................................................................................................1 Visual Basic Script......................................................................................................1 Quick Visual Basic references ...............................................................................................1 Running scripts...........................................................................................................4 Scripting tools.............................................................................................................5 Template scripts......................................................................................................................5 Layout scripts..........................................................................................................................6 Scanning scripts .....................................................................................................................7 VBScript Commands ..................................................................................................8 Waveguide Manager................................................................................................................8 Waveguide Object .................................................................................................................10 Waveguide Object attributes................................................................................................14 Parameter Manager ...............................................................................................................25 Application Manager .............................................................................................................27 Point Source Manager ..........................................................................................................30 Point Source ..........................................................................................................................32 PBGCrystalStruct..................................................................................................................39 Functions which operate on the whole PBGCrystalStructure ..................................39 Unit Cell Functions ...................................................................................................39 Lattice Functions ......................................................................................................40 Basis Cell Management Functions...........................................................................41Testing VB Script functionality .................................................................................97 Examples .................................................................................................................97 VB Script Tutorials..................................................................................................101 Tutorial 1 ..............................................................................................................................101 Procedure...............................................................................................................101 Analysis..................................................................................................................101 Tutorial 2 ..............................................................................................................................103 Procedure...............................................................................................................103 Analysis..................................................................................................................103 Tutorial 3 ..............................................................................................................................105 Procedure...............................................................................................................105 Analysis..................................................................................................................106 Tutorial 4 ..............................................................................................................................108 Procedure...............................................................................................................108 Analysis..................................................................................................................109 Tutorial 5 ..............................................................................................................................110 Tutorial 6 ..............................................................................................................................112 Procedure...............................................................................................................112 Analysis..................................................................................................................114 Conclusion .............................................................................................................115 Notes: ...................................................................................................................................116

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值