diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-255B6815-8CC8-5E4A-9999-9BC083BCCD83.dita --- a/Symbian3/PDK/Source/GUID-255B6815-8CC8-5E4A-9999-9BC083BCCD83.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-255B6815-8CC8-5E4A-9999-9BC083BCCD83.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,28 +1,28 @@ - - - - - -Using -__ASSERT_ALWAYSThis topic explains how to panic on an illegal value. -

This simple example of the use of __ASSERT_ALWAYS shows -how to panic on an illegal value.

-

Suppose the member function F() in class CMyClass, -takes a TInt argument which must always be zero or positive.

-void CMyClass::F(TInt aValue) - { - _LIT(KMyPanicDescriptor, "My panic text"); - - __ASSERT_ALWAYS(aValue >= 0,User::Panic(KMyPanicDescriptor, aValue)); - ... - /* main body of the function */ - ... - } -

If the caller passes a value which is negative, the current thread is panicked.

+ + + + + +Using +__ASSERT_ALWAYSThis topic explains how to panic on an illegal value. +

This simple example of the use of __ASSERT_ALWAYS shows +how to panic on an illegal value.

+

Suppose the member function F() in class CMyClass, +takes a TInt argument which must always be zero or positive.

+void CMyClass::F(TInt aValue) + { + _LIT(KMyPanicDescriptor, "My panic text"); + + __ASSERT_ALWAYS(aValue >= 0,User::Panic(KMyPanicDescriptor, aValue)); + ... + /* main body of the function */ + ... + } +

If the caller passes a value which is negative, the current thread is panicked.

\ No newline at end of file