Discussion:
[ale] C/C++ #define question
Calvin Harrigan
2017-11-07 00:17:11 UTC
Permalink
I was going throw some code and came across an unfamiliar #define
declaration.

#define      ENG_DEBUG      DEBUG_ENABLE_CMD,     "bbbb"


What exactly is happening here?  DEBUG_ENABLE_CMD is defined elsewhere
as a integer.

Guess my C/C++ foo has rusted away.


Thanks

_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail
Pete Hardie
2017-11-07 00:23:00 UTC
Permalink
It replaces ENG_DEBUG with that integer comma bbbb

On Nov 6, 2017 19:17, "Calvin Harrigan" <***@gmail.com> wrote:

I was going throw some code and came across an unfamiliar #define
declaration.

#define ENG_DEBUG DEBUG_ENABLE_CMD, "bbbb"


What exactly is happening here? DEBUG_ENABLE_CMD is defined elsewhere as a
integer.

Guess my C/C++ foo has rusted away.


Thanks

_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Calvin Harrigan
2017-11-07 01:13:44 UTC
Permalink
Really?  0_o
I figured that, but that seemed a little too simple...
Always over complicating it...

Many Thanks!
Post by Pete Hardie
It replaces ENG_DEBUG with that integer comma bbbb
I was going throw some code and came across an unfamiliar #define
declaration.
#define      ENG_DEBUG      DEBUG_ENABLE_CMD,     "bbbb"
What exactly is happening here?  DEBUG_ENABLE_CMD is defined
elsewhere as a integer.
Guess my C/C++ foo has rusted away.
Thanks
_______________________________________________
Ale mailing list
http://mail.ale.org/mailman/listinfo/ale
<http://mail.ale.org/mailman/listinfo/ale>
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
<http://mail.ale.org/mailman/listinfo>
_______________________________________________
Ale mailing list
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Loading...