From dd9d3ba0973e672dec2a8eadbc75f47e5792b92e Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 14 Dec 2023 13:35:09 -0600 Subject: fix readme and some other stuff --- src/ui/debug.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/debug.c') diff --git a/src/ui/debug.c b/src/ui/debug.c index 5623b97..0b47340 100644 --- a/src/ui/debug.c +++ b/src/ui/debug.c @@ -51,6 +51,11 @@ struct ui_window_root *ui__check_cast_to_root(void *obj, const char *file, const UMPS__DEBUG_DO_ERROR(obj, file, func, line, UI__WINDOW_TYPE_ROOT); } +struct ui_window_menu *ui__check_cast_to_menu(void *obj, const char *file, const char *func, int line) +{ + UMPS__DEBUG_DO_ERROR(obj, file, func, line, UI__WINDOW_TYPE_MENU); +} + int ui__debug_nc_check_int(int in, const char *call, const char *file, const char *func, int line) { if (in == ERR) { -- cgit v1.2.3-70-g09d2