diff options
Diffstat (limited to 'throw.h')
-rw-r--r-- | throw.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |