TCatalogsLocalCleanupStackWatcher Class Reference

class TCatalogsLocalCleanupStackWatcher

Function-local cleanup stack watcher. When instantiated as a local variable at start of a scope (e.g. function), tracks cleanupstack balance; will cause E32USER-CBase 90 panic if cleanupstack in the beginning and end of the scope doesn't match (one or more items have been left on cleanup stack or popped out).

Note:

Cannot be used in scopes that are supposed to leave item(s) on cleanup stack, such as an LC function.

Can be used in nested scopes.

Constructor & Destructor Documentation

TCatalogsLocalCleanupStackWatcher()

IMPORT_CTCatalogsLocalCleanupStackWatcher()

~TCatalogsLocalCleanupStackWatcher()

IMPORT_C~TCatalogsLocalCleanupStackWatcher()

Member Data Documentation

TBool iPopped

TBool iPopped