Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32def.h
Link against:

_LIT

#if defined(_UNICODE)
#define _LIT(name,s) const static TLitC<sizeof(L##s)/2> name={sizeof(L##s)/2-1,L##s}
#else
#define _LIT(name,s) const static TLitC<sizeof(s)> name={sizeof(s)-1,s}
#endif

Support

Supported from 5.0

Description

Constructs a build independent constant literal descriptor of type TLitC<TInt> with a specified name and text. An 8 bit build variant is generated for a non-Unicode build; a 16 bit build variant is generated for a Unicode build.

Parameters

name

The name of the C++ variable to be generated.

s

The literal text enclosed within a pair of double quotes.

See also: