mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-07 21:56:44 +01:00
streamline the ability to access internal fields a bit
This commit is contained in:
parent
b9b231a438
commit
09e6b321b6
3 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,8 @@
|
|||
#ifndef LIBSUPERDERPY_INTERNAL_H
|
||||
#define LIBSUPERDERPY_INTERNAL_H
|
||||
|
||||
#define LIBSUPERDERPY_PRIV_ACCESS
|
||||
|
||||
#include "libsuperderpy.h"
|
||||
#ifdef LIBSUPERDERPY_IMGUI
|
||||
#include "imgui/imgui_impl_allegro5.h"
|
||||
|
|
|
@ -86,7 +86,7 @@ struct GamestateResources;
|
|||
|
||||
#define LIBSUPERDERPY_BITMAP_HASHMAP_BUCKETS 16
|
||||
|
||||
#if !defined(LIBSUPERDERPY_INTERNAL_H) && defined(__GNUC__)
|
||||
#if !defined(LIBSUPERDERPY_PRIV_ACCESS) && defined(__GNUC__)
|
||||
#define LIBSUPERDERPY_DEPRECATED_PRIV __attribute__((deprecated))
|
||||
#else
|
||||
#define LIBSUPERDERPY_DEPRECATED_PRIV
|
||||
|
|
|
@ -207,7 +207,6 @@ SYMBOL_EXPORT ALLEGRO_BITMAP* LoadScaledBitmap(struct Game* game, char* filename
|
|||
}
|
||||
|
||||
SYMBOL_EXPORT void FatalErrorWithContext(struct Game* game, int line, const char* file, const char* func, bool exit, char* format, ...) {
|
||||
// TODO: interrupt and take over loading thread when it happens
|
||||
char text[1024] = {0};
|
||||
PrintConsole(game, "Fatal Error, displaying Blue Screen of Derp...");
|
||||
va_list vl;
|
||||
|
|
Loading…
Reference in a new issue