DNWA/11/wywolania/Data/stide_v1.1/Utils/errors.cc
Jakub Stefko ab1d7e2546 ...
2021-01-28 18:33:55 +01:00

21 lines
316 B
C++
Executable File

// **********
// ERRORS.CPP
// **********
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include "errors.h"
void Error(const char *msg, ...) {
char buffer[150];
va_list ap;
va_start(ap, msg);
vsprintf(buffer, msg, ap);
cout<<endl<<buffer<<endl;
va_end(ap);
exit(-1);
}