OpenBLAS/interface/xerbla.c

23 lines
372 B
C
Raw Normal View History

2017-04-27 01:58:59 +08:00
#ifdef CBLAS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "common.h"
void CNAME(blasint p, char *rout, char *form, ...)
{
va_list args;
va_start(args, form);
if (p)
fprintf(stderr, "Parameter %d to routine %s was incorrect\n", p, rout);
2017-04-27 02:29:30 +08:00
vfprintf(stderr, form, args);
2017-04-27 01:58:59 +08:00
va_end(args);
exit(-1);
}
#endif