有没有人曾经为__COUNTER__ pre处理器宏的使用? [英] Has anyone ever had a use for the __COUNTER__ pre-processor macro?

查看:1114
本文介绍了有没有人曾经为__COUNTER__ pre处理器宏的使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

__ __ COUNTER 符号是由的 VC ++ 以及海湾合作委员会,并给出了一个增加非负积分值是每次使用。

The __COUNTER__ symbol is provided by VC++ and GCC, and gives an increasing non-negative integral value each time it is used.

我有兴趣了解是否有人的使用过它,以及是否它的东西,将是值得标准化?

I'm interested to learn whether anyone's ever used it, and whether it's something that would be worth standardising?

推荐答案

它使用的 xCover code覆盖库,以纪念该执行穿过线,发现未涵盖的。

It's used in the xCover code coverage library, to mark the lines that execution passes through, to find ones that are not covered.

这篇关于有没有人曾经为__COUNTER__ pre处理器宏的使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆