News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

what is the purpose of //(* //*) symbol pattern

Started by almonj, January 05, 2017, 06:58:38 PM

Previous topic - Next topic

almonj



I'm programming a wxWidgets project in code blocks and it inserts the symbol pattern //(* //*)   in a bunch of places and I don't understand what this does.

eg.

//(*IdInit(wxfileDialog)
const long wxfileDialog::ID_STATICTEXT1 = wxNewId();
const long wxfileDialog::ID_BUTTON3 = wxNewId();
const long wxfileDialog::ID_BUTTON1 = wxNewId();
const long wxfileDialog::ID_BUTTON2 = wxNewId();
const long wxfileDialog::ID_STATICLINE1 = wxNewId();
//*)

it looks like some kind of commenting thing but the code inside is functional. What is the purpose of this?

[/size][/font][/b]

stahta01

#1
This is auto generated wxSmith code; the comments tell you NOT to edit code inside this block of code.

Edit: I do NOT use wxSmith myself; so, this is based on what I remember from past posts, I might be wrong.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

//(* and //*) are single line comments they are not the same as /* and */. So the code between them is not commented out, but it is fully functional. wxSmith uses these comments to find section where to write its code.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]