Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Lowkus on May 10, 2018, 02:56:04 am

Title: Compiler Define - Adding Comments?
Post by: Lowkus 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.
Title: Re: Compiler Define - Adding Comments?
Post by: stahta01 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.
 
Title: Re: Compiler Define - Adding Comments?
Post by: stahta01 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.
Title: Re: Compiler Define - Adding Comments?
Post by: Lowkus 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.