title: Is there a portable equivalent to DebugBreak()/__debugbreak?
body: <p>In MSVC, <a href="http://msdn.microsoft.com/en-us/library/ms679297.aspx" rel="noreferrer">DebugBreak()</a> or <a href="http://msdn.microsoft.com/fr-fr/library/f408b4et.aspx" rel="noreferrer">__debugbreak</a> cause a debugger to break. On x86 it is equivalent to writing "_asm int 3", on x64 it is something different. When compiling with gcc (or any other standard compiler) I want to do a break into debugger, too. Is there a platform independent function or intrinsic? I saw the <a href="https://stackoverflow.com/questions/37299/xcode-equivalent-of-asm-int-3-debugbreak-halt">XCode question</a> about that, but it doesn't seem portable enough.</p>
  
  <p>Sidenote: I mainly want to implement ASSERT with that, and I understand I can use assert() for that, but I also want to write DEBUG_BREAK or something into the code.</p>