K
Konrad
Hello,
Stupid question, but I just don't remember, here is what I want to do:
#ifdef _UNICODE
#define ONLY_UNICODE(t) t
#else
#define ONLY_UNICODE(t)
#endif
You know what it does, but I'm not sure, if I actually can use #defines
with multiline code? I'm just not sure, here is an example of using this:
ONLY_UNICODE
(
MessageBox(_T("A lot of lines"));
MessageBox(_T("are included"));
MessageBox(_T("as a paremeter of this directive"));
);
It does compile, but maybe I should be worry about it ? I do remember
that there was something about including more than one line as a
#define's parameter, I somehow don't remember what was that.
Stupid question, but I just don't remember, here is what I want to do:
#ifdef _UNICODE
#define ONLY_UNICODE(t) t
#else
#define ONLY_UNICODE(t)
#endif
You know what it does, but I'm not sure, if I actually can use #defines
with multiline code? I'm just not sure, here is an example of using this:
ONLY_UNICODE
(
MessageBox(_T("A lot of lines"));
MessageBox(_T("are included"));
MessageBox(_T("as a paremeter of this directive"));
);
It does compile, but maybe I should be worry about it ? I do remember
that there was something about including more than one line as a
#define's parameter, I somehow don't remember what was that.