pandemonium_engine_minimal/platform/frt_sdl/frt.cc
2023-12-14 21:54:22 +01:00

43 lines
729 B
C++

// frt.cc
/*
FRT - A Godot platform targeting single board computers
Copyright (c) 2017-2022 Emanuele Fornara
SPDX-License-Identifier: MIT
*/
#include "frt.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
static void print_msg(const char *format, va_list ap) {
fprintf(stderr, "frt: ");
vfprintf(stderr, format, ap);
fprintf(stderr, "\n");
}
namespace frt {
void warn(const char *format, ...) {
va_list ap;
va_start(ap, format);
print_msg(format, ap);
va_end(ap);
}
void fatal(const char *format, ...) {
va_list ap;
va_start(ap, format);
print_msg(format, ap);
va_end(ap);
exit(1);
}
} // namespace frt
#include "frt_lib.h"
extern "C" void frt_parse_frt_args(int argc, char *argv[]) {
}