Skip to content

Replace msg_stack with TRACE everywhere#575

Merged
bendudson merged 10 commits intonextfrom
replace_msg_stack_with_TRACE_merge
Jun 12, 2017
Merged

Replace msg_stack with TRACE everywhere#575
bendudson merged 10 commits intonextfrom
replace_msg_stack_with_TRACE_merge

Conversation

@d7919
Copy link
Member

@d7919 d7919 commented Jun 9, 2017

Replaces all usage of msg_stack.push/pop with the TRACE macro.

Not only does this remove a lot of explicit #ifdef CHECK lines it also fixes a number of minor bugs. These mostly arose from either push or pop calls that had unmatched CHECK guarding (e.g. one in a #ifdef CHECK and the other not), return statements after a push but before a pop and some nesting issues.

d7919 added 10 commits June 7, 2017 14:50
Currently can't easily replace any instances where string formatting is
required as not supported by TRACE yet. Also not changing nested
calls yet as more complicated to ensure correct scope of TRACE without
effecting scope of variables etc.
This replaces msg_stack calls that require formatting.
This provides an example of how to use the TRACE formatting capability
with a ternary conditional to allow different TRACE messages depending
on routine arguments.
@bendudson bendudson merged commit 9372ca3 into next Jun 12, 2017
@bendudson bendudson deleted the replace_msg_stack_with_TRACE_merge branch June 12, 2017 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants