![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#if defined(_UNICODE)
#define _LIT(name,s) const static TLitC<sizeof(s)> name={sizeof(s)-1,L##s}
#else
#define _LIT(name,s) const static TLitC<sizeof(s)> name={sizeof(s)-1,s}
#endif
e32def.h
Use the macro to construct a constant literal descriptor of type TLitC<TInt> with name name and text s.
An 8 bit build variant is generated for a non-Unicode build; a 16 bit build variant is generated for a Unicode build.
name |
The name of the C++ variable to be generated. |
s |
The literal text enlosed within a pair of double quotes. |
_LIT(KSomeText,"qwerty");
generates the following C++ code:
const static TLitC<7> KSomeText;
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |