User forums > Using Code::Blocks
what is the purpose of //(* //*) symbol pattern
(1/1)
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:
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.
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.
Navigation
[0] Message Index
Go to full version