Skip to content
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

Add a macro that allows not including STB's impl. #3318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalmard0
Copy link
Contributor

This is useful for projects that want to use bgfx's imgui layer but supply their own STB implementation that would otherwise conflict with this one (due to them being global C functions).

This is useful for projects that want to use bgfx's imgui layer but
supply their own STB implementation that would otherwise conflict with
this one (due to them being global C functions).
@kalmard0 kalmard0 requested a review from bkaradzic as a code owner June 25, 2024 13:09
@bkaradzic
Copy link
Owner

I dislike this approach, but understand what's the problem...

Also bgfx doesn't use #ifdef/#ifndef rather uses defines that are set to 0 or 1.

@kalmard0
Copy link
Contributor Author

I dislike this approach, but understand what's the problem...

Also bgfx doesn't use #ifdef/#ifndef rather uses defines that are set to 0 or 1.

Any suggestions on how to implement this nicely?

@bkaradzic
Copy link
Owner

Any suggestions on how to implement this nicely?

Not really right now. I would have to look at it to refresh my memory why it's done like that.

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.

None yet

2 participants