summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/X11/IntrinsicP.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/X11/IntrinsicP.h b/include/X11/IntrinsicP.h
index f2ded6f..9f1ae40 100644
--- a/include/X11/IntrinsicP.h
+++ b/include/X11/IntrinsicP.h
@@ -246,15 +246,15 @@ extern Boolean XtIsTopLevelShell(Widget);
#ifdef DEBUG
#define XtCheckSubclass(w, widget_class_ptr, message) \
if (!XtIsSubclass(((Widget)(w)), (widget_class_ptr))) { \
- String params[3]; \
- Cardinal num_params = 3; \
- params[0] = ((Widget)(w))->core.widget_class->core_class.class_name;\
- params[1] = (widget_class_ptr)->core_class.class_name; \
- params[2] = (message); \
+ String dbgArgV[3]; \
+ Cardinal dbgArgC = 3; \
+ dbgArgV[0] = ((Widget)(w))->core.widget_class->core_class.class_name;\
+ dbgArgV[1] = (widget_class_ptr)->core_class.class_name; \
+ dbgArgV[2] = (message); \
XtAppErrorMsg(XtWidgetToApplicationContext((Widget)(w)), \
"subclassMismatch", "xtCheckSubclass", "XtToolkitError", \
"Widget class %s found when subclass of %s expected: %s",\
- params, &num_params); \
+ dbgArgV, &dbgArgC); \
}
#else
#define XtCheckSubclass(w, widget_class, message) /* nothing */