|
OpenTTD Source 20260218-master-g2123fca5ea
|
Helper class to keep track of command nesting level. More...
#include <command_func.h>
Public Member Functions | |
| bool | IsTopLevel () const |
| Are we in the top-level command execution? | |
Static Private Attributes | |
| static int | _counter = 0 |
| Number of instances of this class. | |
Helper class to keep track of command nesting level.
Definition at line 59 of file command_func.h.
|
inlinenoexcept |
Definition at line 60 of file command_func.h.
|
inlinenoexcept |
Definition at line 61 of file command_func.h.
|
inline |
Are we in the top-level command execution?
true iff at the top level. Definition at line 67 of file command_func.h.
References _counter.
Referenced by CommandHelper< Tcmd, Tret(*)(DoCommandFlags, Targs...), true >::Do().
|
staticprivate |
Number of instances of this class.
Definition at line 69 of file command_func.h.
Referenced by IsTopLevel().