aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/debug.c
diff options
context:
space:
mode:
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) {