Author Topic: Compiler Define - Adding Comments?  (Read 4129 times)

Offline Lowkus

  • Multiple posting newcomer
  • *
  • Posts: 14
Compiler Define - Adding Comments?
« on: May 10, 2018, 02:56:04 am »
If I add a DEFINE value in the project compiler options, can I also comment that item?  As an example, see the last item in the list below.  Would CodeBlocks know to remove the comment from the DEFINE list?

__GNUWIN32__
__WXMSW__
wxUSE_UNICODE
GUID_WINDOWS --Replace this when compiling for Linux.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: Compiler Define - Adding Comments?
« Reply #1 on: May 10, 2018, 03:02:54 am »
Project -> Property
Tab: Notes

Is the only place except for in code files or a separate note file to add comments like that.

Someone else might know of a different place.

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: Compiler Define - Adding Comments?
« Reply #2 on: May 10, 2018, 04:27:41 am »
Re-read your post; and, you do know about project targets, right?

Do you know you can set whether a target is built for Linux and/or Windows?

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

Offline Lowkus

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Compiler Define - Adding Comments?
« Reply #3 on: May 10, 2018, 05:33:04 pm »
I am vaguely aware of creating different targets, I have never attempted it and the details are something I would have to research.