Skip to content

imconfig.h feature: support custom stb_sprintf.h include path #5068

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

Conversation

jakubtomsu
Copy link
Contributor

(note: this is a very small change)

I added an option to customize stb_sprintf.h include path in imconfig.h. This makes it more consistent with the other STB libraries, since stb_truetype.h and stb_rect_pack.h are both configurable.

// (imconfig.h)
// this can be used in imconfig.h to change the stb_sprintf.h include directory
#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h"

I feel like having this options is a bit simpler than changing the include paths somewhere in a project config ...

I've been using this custom stb_sprintf.h filepath option in a project I'm working on, so It has been tested.

@ocornut
Copy link
Owner

ocornut commented Mar 13, 2022

Squashed and merged as 3deb92c, thank you!

@ocornut ocornut closed this Mar 13, 2022
sergeyn pushed a commit to sergeyn/imgui that referenced this pull request Mar 19, 2022
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