Skip to content

Detail-Stack API #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ml-physec
Copy link

🍍

Initial implementation for #774.

This adds UNITY_DETAIL_PUSH/POP, which can be used to put arbitrary label+value pairs on the detail stack.

The configuration is a bit complicated, but all labels are fully customizable.
Values can be either printed as string, or any of the supported number styles via special prefixes. See examples/example_5 for an example.

Compared to the current detail slots (CurrentDetail1/2, 2 x pointers), the overhead in UNITY_STORAGE_T (in RAM) is:

  • n x pointers
  • n x uint8_t
  • 1 x counter

I am open to any suggestions.

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.

1 participant