EPOC   SDK Home Glossary Indexes Previous Next Up

_LIT8 macro


_LIT8 macro — Construct an 8 bit constant literal

#define _LIT8(name,s) const static TLitC8<sizeof(s)> name={sizeof(s)-1,s}

Defined in

e32def.h

Description

Use the macro to construct a constant literal descriptor of type TLitC8<TInt> with name name and text s.

The 8 bit build variant is generated for both a non-Unicode build and a Unicode build.

Arguments

name

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

s

The literal text enlosed within a pair of double quotes.

Example
    _LIT8(KSomeText,"qwerty");

generates the following C++ code:

    const static TLitC8<7> KSomeText;
EPOC       SDK Home Glossary Indexes Previous Next Up