5 #ifndef __vstguidebug__ 6 #define __vstguidebug__ 8 #include "vstguibase.h" 14 using AssertionHandler = std::function<void (const char* filename, const char* line, const char* desc)>;
15 void setAssertionHandler (
const AssertionHandler& handler);
16 bool hasAssertionHandler ();
17 void doAssert (
const char* filename,
const char* line,
const char* desc =
nullptr) noexcept (false);
19 #define vstgui_assert(x, ...) if (!(x)) VSTGUI::doAssert (__FILE__, VSTGUI_MAKE_STRING(__LINE__), ## __VA_ARGS__); 31 extern void DebugPrint (
const char *format, ...);
37 TimeWatch (UTF8StringPtr name =
nullptr,
bool startNow =
true);
38 ~TimeWatch () noexcept;
45 std::clock_t startTime;
Definition: customcontrols.cpp:8