Skip to content

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