diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-01-08 22:43:35 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-01-08 22:43:35 +0100 |
commit | 4addb711c6a1a282b0a59bf03e850a86ba2ead69 (patch) | |
tree | f7e9c4a594d1c4fa41a6ebc6371279762a9a580a /throw.h |
Initial
Diffstat (limited to 'throw.h')
-rw-r--r-- | throw.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#pragma once + +#include <cstdio> + +using namespace std; + + +#define THROW(desc) do { \ + fprintf(stderr,"THROW: %s\n",desc); \ + __asm("int3\n\t"); \ + } while(0) |