summaryrefslogtreecommitdiff
path: root/throw.h
diff options
context:
space:
mode:
Diffstat (limited to 'throw.h')
-rw-r--r--throw.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/throw.h b/throw.h
index 7ae211a..d96cfa3 100644
--- a/throw.h
+++ b/throw.h
@@ -1,11 +1,13 @@
#pragma once
+#include <string>
#include <cstdio>
using namespace std;
#define THROW(desc) do { \
- fprintf(stderr,"THROW: %s\n",desc); \
+ string _s(desc); \
+ fprintf(stderr,"THROW: %s\n",_s.data()); \
__asm("int3\n\t"); \
} while(0)