bombomby / optick

C++ Profiler For Games

Home Page:https://optick.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exceptions not caught at C API boundary

raintherrien opened this issue · comments

commented

This library does appear to use exceptions to propagate errors, it uses STL containers, but there is no exception handling performed in optick_capi.cpp. If the intent of optick_capi.h is to provide C linkage then any error would result in undefined behavior.

Perhaps that's not the purpose of this header. If not, could there be e.g. a CMake option to exit on error so that it works without UB?