Skip to content

[FR] Context function is a great feature but could be better #18

Description

@Flamitsu

Is your feature request related to a problem? Please describe.
Context function is a great feature for debugging, because it shows you the function that gave the error and not just a generic Status code like the firmware does, but, introduces unnecessary text for release builds, increasing the binary size and making it run slower.

Describe the solution you'd like
Make it disappear from the release binary with a macro that detects if it is compiling in debug mode or release mode.
If it is the debug mode, compile it with the whole string that says where the bug / fail is, if it is not debug mode, just gives an empty value

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions