Skip to content
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

Remove exception location information in release builds. #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ptc-lfruehstueck
Copy link

Currently the __FILE__, __LINE__ and __FUNCTION__ macros are used in every exception instantiation to provide information about where an exception occurred. Especially the usage of the __FILE__ macro is problematic as it fills up the compiled binary with a large amount of strings containing absolute paths to source files.

This proposed change here wraps exception instantiation in a macro to better control the usage of the __FILE__ macro. It is now only enabled in debug builds to ensure that no filename strings are included in release binaries.

This wraps exception instantiation in a macro to better control the usage of the __FILE__ macro. It is now only used in debug builds to ensure that no filename strings are included in release binaries.
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