streamline the ability to access internal fields a bit

This commit is contained in:
Sebastian Krzyszkowiak 2018-12-15 05:29:32 +01:00
parent b9b231a438
commit 09e6b321b6
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF
3 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,8 @@
#ifndef LIBSUPERDERPY_INTERNAL_H #ifndef LIBSUPERDERPY_INTERNAL_H
#define LIBSUPERDERPY_INTERNAL_H #define LIBSUPERDERPY_INTERNAL_H
#define LIBSUPERDERPY_PRIV_ACCESS
#include "libsuperderpy.h" #include "libsuperderpy.h"
#ifdef LIBSUPERDERPY_IMGUI #ifdef LIBSUPERDERPY_IMGUI
#include "imgui/imgui_impl_allegro5.h" #include "imgui/imgui_impl_allegro5.h"

View file

@ -86,7 +86,7 @@ struct GamestateResources;
#define LIBSUPERDERPY_BITMAP_HASHMAP_BUCKETS 16 #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)) #define LIBSUPERDERPY_DEPRECATED_PRIV __attribute__((deprecated))
#else #else
#define LIBSUPERDERPY_DEPRECATED_PRIV #define LIBSUPERDERPY_DEPRECATED_PRIV

View file

@ -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, ...) { 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}; char text[1024] = {0};
PrintConsole(game, "Fatal Error, displaying Blue Screen of Derp..."); PrintConsole(game, "Fatal Error, displaying Blue Screen of Derp...");
va_list vl; va_list vl;