Hi All,
#define _LIT16(name,s) static const TLitC16<sizeof(L##s)/2>
name={sizeof(L##s)/2-1,L##s}
It's generally a good idea to keep your lines shorter than 80 characters.
Especially when posting to usenet. This would be a syntax error, but I'll
imagine there's a backslash at the end of the first line.
Also, _LIT16 is also a bad thing to call virtually anything, since you'd
be invading implementation namespace. The same goes for _L.
#define _L(a) (TPtrC((const TText *)L ## a))
I couldn't tell you what they're for, but:
_LIT16 (poop, string)
Should expand to the following:
static const TLitC16<sizeof(Lstring)/2> \
poop={sizeof(Lstring)/2-1,Lstring}
Which looks like a C++ template function of some sort. See comp.lang.c++
for more information about this.
_L (voov);
Should expand to:
(TPtrC((const TText *)Lvoov));
Which looks like a screaming mad sort of wrapper thing. Or a macro to
build screaming mad sort of wrapper things. Or possibly an uran-utan.
Google tells me both macros are part of the Symbian Developer Library,
which is indeed a C++ API, and that both macros were in fact /NOT/
written by someone called Bergholt Stuttley Johnson.
http://www.symbian.com/developer/te...erence/cpp/LiteralDescriptors/Lit16Macro.html
http://www.symbian.com/developer/te...ference/cpp/LiteralDescriptors/LMacro.html#_L
can any one explain me the above two, I am geting bit confused.
No wonder.