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

Are there ImGui APIs that can throw? #7711

Open
alien-brother opened this issue Jun 18, 2024 · 3 comments
Open

Are there ImGui APIs that can throw? #7711

alien-brother opened this issue Jun 18, 2024 · 3 comments

Comments

@alien-brother
Copy link

alien-brother commented Jun 18, 2024

Version/Branch of Dear ImGui:

Version 1.90.8, Branch: master

Back-ends:

imgui_impl_win32.cpp + imgui_impl_dx11.cpp (the question stands for other backends as well)

Compiler, OS:

Windows 11, Visual Studio 2022

Full config/build information:

Any

Details:

My Issue/Question:

Are there ImGui APIs that can throw? It would seem that there aren't? However, ImGui does not use noexcept, so maybe I'm missing a piece of information?

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@ocornut
Copy link
Owner

ocornut commented Jun 18, 2024

Nothing does throw except maybe calls to IM_NEW() depending on your new() setup.

@alien-brother
Copy link
Author

If I'm not touching anything around IM_NEW(), it cannot throw, right? By default, it seems to be doing placement new in a buffer created by malloc().

@ocornut
Copy link
Owner

ocornut commented Jun 19, 2024

Yes that's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants