Skip to content

Prevent overriding of '#define INLINE'#484

Closed
vortigont wants to merge 1 commit intomoononournation:masterfrom
vortigont:inlinefx
Closed

Prevent overriding of '#define INLINE'#484
vortigont wants to merge 1 commit intomoononournation:masterfrom
vortigont:inlinefx

Conversation

@vortigont
Copy link
Contributor

'#define INLINE' is used frequently in other libs, unprotected override results in tons on compiler warnings like this: warning: "INLINE" redefined

This PR will protect it with #ifndef guard and prevent warnings in case global INLINE is defined

'#define INLINE' is used frequently in other libs,
unprotected override results in tons on compiler warnings like this: `warning: "INLINE" redefined`
@moononournation
Copy link
Owner

That does not fully fix the conflict, is it better if rename it to e.g. GFX_INLINE?

@vortigont
Copy link
Contributor Author

yes, it's not there to fix the conflict but, probably user could use same definition in different libs, but it's could turn into unexpected result.
Renaming it to some more unique GFX_INLINE would definitely be a better option.

moononournation added a commit that referenced this pull request Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants