Closed vortigont closed 3 weeks ago
That does not fully fix the conflict, is it better if rename it to e.g. GFX_INLINE?
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.
'#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 globalINLINE
is defined