mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-01-20 20:01:12 +00:00
22 lines
401 B
C++
22 lines
401 B
C++
|
/*
|
||
|
* Copyright (c) 2015 Andrew Kelley
|
||
|
*
|
||
|
* This file is part of libsoundio, which is MIT licensed.
|
||
|
* See http://opensource.org/licenses/MIT
|
||
|
*/
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdarg.h>
|
||
|
|
||
|
#include "util.hpp"
|
||
|
|
||
|
void panic(const char *format, ...) {
|
||
|
va_list ap;
|
||
|
va_start(ap, format);
|
||
|
vfprintf(stderr, format, ap);
|
||
|
fprintf(stderr, "\n");
|
||
|
va_end(ap);
|
||
|
abort();
|
||
|
}
|