Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: almonj on January 05, 2017, 06:58:38 pm

Title: what is the purpose of //(* //*) symbol pattern
Post by: almonj on January 05, 2017, 06:58:38 pm


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]
Title: Re: what is the purpose of //(* //*) symbol pattern
Post by: stahta01 on January 05, 2017, 07:15:28 pm
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.
Title: Re: what is the purpose of //(* //*) symbol pattern
Post by: oBFusCATed on January 05, 2017, 08:18:09 pm
//(* 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.