Skip to content

Add NOBDEF macro to the beginning of function declarations #73

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

Closed
wants to merge 1 commit into from

Conversation

minefreak19
Copy link
Contributor

This would enable e.g. users with a single file of source code to #define NOBDEF static inline so that the compiler can recognise unused functions as dead code to be removed from the executable.

This would enable e.g. users with a single file of source code to
`#define NOBDEF static inline` so that the compiler can recognise unused
functions as dead code to be removed from the executable.
@rexim rexim mentioned this pull request Aug 12, 2025
@rexim
Copy link
Member

rexim commented Aug 12, 2025

Oh, yeah, this is a common thing in stb-style libraries that I forgot, thank you! Committed at 68e688f

@rexim rexim closed this in #81 Aug 12, 2025
@minefreak19 minefreak19 deleted the nobdef branch August 13, 2025 19:23
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.

2 participants