view interps/sadol/pch.cpp @ 11258:edaf8efd6e21

<oerjan> learn This is something people on the channel like to talk about. We\'re often unsure what this is, though.
author HackBot
date Sat, 09 Dec 2017 11:45:07 +0000
parents 859f9b4339e6
children
line wrap: on
line source

/*
 * BDSM2
 * Author: Adam Sawicki
 * http://www.regedit.risp.pl
 * mailto:regedit@risp.pl
 */
/* Precompiled header */
#include "pch.hpp"
#include <iostream>

void Error(const string &Msg, ERR_PLACE Place)
{
	string s;
	switch (Place)
	{
	case ERR_PARSE:
		s = "Parsing: ";
		break;
	case ERR_OPTIMIZE:
		s = "Optimizing: ";
		break;
	case ERR_EXECUTE:
		s = "Executing: ";
		break;
	case ERR_IO:
		s = "IO: ";
		break;
	}
	std::cerr << "BDSM: " << s << Msg << std::endl;

	exit(ERR_GENERAL);
}