+/****************************************************************************
+PARAMETERS:
+varName - The String name of the class
+val - Value to force the if/else variable with
+
+REMARKS:
+Function to forcibly override the value of an if/else variable for
+testing purposes. Once the variable has been forced, it will always return
+the forced value until the application exists.
+
+NOTE: This is only available when compiled in CHECKED mode.
+****************************************************************************/
+void wxIfElseVariable::Force(
+ const wxChar *varName,
+ bool val)
+{
+ wxIfElseVariable *info = wxIfElseVariable::FindVariable(varName);
+ if (info) {
+ info->forced = true;
+ info->forceVal = val;
+ }
+ else {
+#ifdef CHECKED
+ wxMessageBox(wxString("wxHTML #if error: Class is not a valid if else variable (") + varName + wxString(")."),"Error",wxICON_ERROR);
+#endif
+ }