#define LMD_MIXING
#ifdef LMD_MIXING
# define LMD_RIMIX
# define LMD_CONVEC
# define LMD_SKPP
# define LMD_NONLOCAL
#endif
this's a part of a .h file.may you tell me could i write them like the follow:
#define LMD_MIXING
# define LMD_RIMIX
# define LMD_CONVEC
# define LMD_SKPP
# define LMD_NONLOCAL
is this right too?
question on define
-
- Posts: 5
- Joined: Mon Nov 28, 2011 4:35 pm
- Location: Ocean University of China
-
- Posts: 64
- Joined: Mon Oct 17, 2005 2:02 am
- Location: Institute of Oceanology,Chinese Academy of Sciences
Re: question on define
I think you could. But you should know the original version could be easily switched off by changing only one line, which is very convenient.