summaryrefslogtreecommitdiff
path: root/throw.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-08 22:43:35 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-08 22:43:35 +0100
commit4addb711c6a1a282b0a59bf03e850a86ba2ead69 (patch)
treef7e9c4a594d1c4fa41a6ebc6371279762a9a580a /throw.h
Initial
Diffstat (limited to 'throw.h')
-rw-r--r--throw.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/throw.h b/throw.h
new file mode 100644
index 0000000..7ae211a
--- /dev/null
+++ b/throw.h
@@ -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)