mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-10 20:12:10 +01:00
43 lines
729 B
C++
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[]) {
|
||
|
}
|