Synopsis
typedef enum {
NB_FLAG_BREAK,
NB_FLAG_WATCHDOG,
NB_FLAG_STEP,
NB_FLAG_TRACE
} nb_flag_t;
The state variable nb_flags is a bitmask with each bit corresponding to
one of these flags. The interpreter examines nb_flags before it starts
to execute a new statement to see if any special processing is required.
-
NB_FLAG_BREAK
- Break execution back to top level. Setting this flag causes the
interpreter to exit to the top-level loop using the NB_BREAKPOINT
exception. This flag can be set asynchronously to indicate to the
interpreter that the user has pressed the break key.
-
NB_FLAG_WATCHDOG
- Break execution back to top level and indicate that this is a
watchdog timeout. Setting this flag causes the interpreter to
exit to the top-level loop using the NB_WATCHDOG exception.
This flag can be set asynchronously to indicate to the watchdog
has fired when debugging the application.
-
NB_FLAG_STEP
- Step one statement and then set the NB_FLAG_BREAK flag.
-
NB_FLAG_TRACE
- Trace-enabled flag. Setting this flag causes the interpreter to print
each statement with a before it executes it.
See Also
nb_flags