我在代码块中生成的wxWidgets代码中发现了一个奇怪的注释符号模式,并且其中的某些部分也被编译器执行。
这个符号到底是什么,它的作用和名称是什么?
//(* ...//*)
这是如何在应用程序的源代码中实现它的示例:
//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
teesrtFrame* Frame = new teesrtFrame(0);
Frame->Show();
SetTopWindow(Frame);
}
//*)
AppInitialize
似乎被忽略了,但所有有效代码都被编译了。
编辑:
最佳答案
那是 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/