Shows how to use assert_ macro.
#include <xtd/xtd>
int main() {
auto index = 0;
console::write_line("Start application");
assert_(index > 0,
"index must be greater than 0");
console::write_line("End application");
}
#define assert_(...)
Checks for a condition; if the condition is false, displays a message box that shows the call stack.
Definition assert.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10