Author Topic: New to //(* ... //*)  (Read 2004 times)

Offline cwmoser

  • Multiple posting newcomer
  • *
  • Posts: 12
New to //(* ... //*)
« on: March 17, 2023, 11:30:02 am »
Exactly what is going on here.

Example:

Code
    //(*Initialize(Test_GUI_4Frame)
    wxMenu* Menu1;
    wxMenu* Menu2;
    wxMenuBar* MenuBar1;
    wxMenuItem* MenuItem1;
    ..
   //*)

I note when I remove the comment tags and put an ordinary comment for "Initialize(Test_GUI_4Frame)"
that the program compiles without errors.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: New to //(* ... //*)
« Reply #1 on: March 17, 2023, 02:22:08 pm »
Those are special comments from wxSmith, if you delete them wxSmith will not be able to update your source.

Offline cwmoser

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: New to //(* ... //*)
« Reply #2 on: March 17, 2023, 11:25:21 pm »
Interesting that you can remove the comments except for first line and it still compiles OK.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: New to //(* ... //*)
« Reply #3 on: March 18, 2023, 12:02:30 pm »
Normal
For a C++ compiler, lines beginning by // are comments (only this line). But the other lines are not comments. This is different for the bloc of lines between /* and */ which are normal C comments.
C::B mark the other lines in grey and italic, but this is just to tell you that they are lines created by wxSmith, which must be compiled.
gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: New to //(* ... //*)
« Reply #4 on: March 19, 2023, 08:34:11 pm »
What are the errors you are getting from compiling?