Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32def.h

Typedef TBool

typedef int TBool;

Description

Boolean type which takes the value either ETrue or EFalse.

Although only a single bit would theoretically be necessary to represent a Boolean, a machine word is used instead, so that these quantities can be easily passed. Also, TBool must map onto int because of C++'s interpretation of operands in conditional expressions.

On implementations of Symbian OS in which the compiler supports the ANSI-recommended bool type, TBool will be typedef'ed to bool instead of int.