Obviously, this should only be available in debug builds - Release builds should either do nothing or outright fail to compile if the function is encountered.
Something like this, perhaps:
Code: Select all
double foo (int x) {
DebuggerBreakpoint ();
return x / (1 / 16);
}