News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Compiler Define - Adding Comments?

Started by Lowkus, May 10, 2018, 02:56:04 AM

Previous topic - Next topic

Lowkus

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.

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Lowkus

I am vaguely aware of creating different targets, I have never attempted it and the details are something I would have to research.