Add GUI support for else if, or if and else blocks.
Add another drop-down to change between these. Opening if blocks cannot be converted to/from these.
This commit is contained in:
@@ -90,6 +90,7 @@ enum TraceRestrictItemType {
|
||||
|
||||
/* no flags set indicates end if for TRIT_COND_ENDIF, if otherwise */
|
||||
enum TraceRestrictCondFlags {
|
||||
TRCF_DEFAULT = 0,
|
||||
TRCF_ELSE = 1 << 0,
|
||||
TRCF_OR = 1 << 1,
|
||||
/* 1 bit spare */
|
||||
@@ -187,6 +188,11 @@ static inline void SetTraceRestrictCondOp(TraceRestrictItem &item, TraceRestrict
|
||||
SB(item, TRIFA_COND_OP_OFFSET, TRIFA_COND_OP_COUNT, condop);
|
||||
}
|
||||
|
||||
static inline void SetTraceRestrictCondFlags(TraceRestrictItem &item, TraceRestrictCondFlags condflags)
|
||||
{
|
||||
SB(item, TRIFA_COND_FLAGS_OFFSET, TRIFA_COND_FLAGS_COUNT, condflags);
|
||||
}
|
||||
|
||||
static inline void SetTraceRestrictAuxField(TraceRestrictItem &item, uint8 data)
|
||||
{
|
||||
SB(item, TRIFA_AUX_FIELD_OFFSET, TRIFA_AUX_FIELD_COUNT, data);
|
||||
|
Reference in New Issue
Block a user