What is the aim of making define not to have value?

J

janus

Hello All,

I saw the below in a code I was going through, however I could not make much from it. Why should one have define without values?

#define MUT_RIDX_MAINTHREAD
#define MUT_RIDX_GLOBALS

Regards, \Janus
 
J

James Kuyper

Hello All,

I saw the below in a code I was going through, however I could not make much from it. Why should one have define without values?

#define MUT_RIDX_MAINTHREAD
#define MUT_RIDX_GLOBALS

For use in statements such as

#ifdef MUT_RIDX_MAINTHREAD

or

#ifndef MUT_RIDX_GLOBALS

or

#if defined(MUT_RIDX_MAINTHREAD) && defined(MUT_RIDX_GLOBALS)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,700
Latest member
jody1922

Latest Threads

Top