-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Macro leak with unity build #59
Comments
How about we add a check for |
This is certainly a way to solve this. I wonder, however, why you need this at all, if you can just decline PRs that try to introduce a call to malloc? Are you trying to protect people from shooting their feet off? |
I'm trying to prevent me from shooting my own foot off. :) I'll move this to the CMake project, actually, and out of the source code, which will solve the problem for both of us. |
When configuring with
Perhaps these read utility functions can be moved to a common header? Or renamed to something unique? |
Unity builds glue together multiple files, so when using PhysFS in a bigger project, macros like
(
physfs_internal.h:171
)suddenly may become defined for an outer scope, effectively disabling malloc usage in this case.
The text was updated successfully, but these errors were encountered: