#include <util.h>
The macro should be put at the top of module methods that may be called from other modules, and it creates an instance of this class. The constructor switches the context to the module containing the method, and the destructor restores the original context.
Public Member Functions | |
cContextSwitcher (cModule *thisptr) | |
~cContextSwitcher () | |
void | methodCall (const char *fmt,...) |
|
Switches context to the given module.
|
|
Restores the original context.
|
|
Tells the user interface about the method call (so that it can be animated, etc. ) |