c++ - wxWidgets 中的奇怪注释

标签 c++ comments wxwidgets

我在代码块中生成的wxWidgets代码中发现了一个奇怪的注释符号模式,并且其中的某些部分也被编译器执行。

这个符号到底是什么,它的作用和名称是什么?

//(* ...//*)

这是如何在应用程序的源代码中实现它的示例:

//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
    teesrtFrame* Frame = new teesrtFrame(0);
    Frame->Show();
    SetTopWindow(Frame);
}
//*)

AppInitialize 似乎被忽略了,但所有有效代码都被编译了。

编辑:

我希望这张图片能更多地解释我的疑惑。 enter image description here

最佳答案

那是 wxSmith 代码。来自其 docs :

This is a block of code that is automatically generated by wxSmith. Every block starts with a //(BlockName comment and ends with a //). You may find other similar blocks in both header and source files. If you change their content, all changes will be lost next time you change something in the editor. These comments and everything inside them belong to wxSmith, so don't mess with them.

关于c++ - wxWidgets 中的奇怪注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43223291/

相关文章:

C++ 对自动(堆栈)指针使用运算符删除

c++ - 如何在scanf中使用char双指针?

C++简单程序错误

java - 使用 Checkstyle 检查评论/Javadoc 字数

javascript - YUI 删除 javascript 评论

c++ - wxWidgets:使用 wxCSConv wxMBConv 对 wxString 进行编码

c++ - wxToggleButton::GetValue() 崩溃

c++ - Effective C++,第三版 : Overloading const function

mysql - #在sql中是什么意思?

qt - X-Windows、wxWidgets、GTK/Qt 和 OpenGL 有什么区别?