aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/debug.c
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2023-12-14 13:35:09 -0600
committerLibravatar bigfoot547 <[email protected]>2023-12-14 13:35:09 -0600
commitdd9d3ba0973e672dec2a8eadbc75f47e5792b92e (patch)
tree02f5dc32cfe9db93c538f8e46755a76df83d27bb /src/ui/debug.c
parentreadme (diff)
fix readme and some other stuffHEADmaster
Diffstat (limited to 'src/ui/debug.c')
-rw-r--r--src/ui/debug.c5
1 files changed, 5 insertions, 0 deletions
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) {