summaryrefslogtreecommitdiff
path: root/throw.h
blob: d96cfa33187b0bfa7c105f0492cdce57ac6c4f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <string>
#include <cstdio>

using namespace std;


#define THROW(desc) do { \
		string _s(desc); \
		fprintf(stderr,"THROW: %s\n",_s.data()); \
		__asm("int3\n\t"); \
	} while(0)