onSwitchError( file, line );
}
+/+
extern (C) void _d_hidden_func()
{
// TODO: Figure out what to do with this routine
+ // it's in exception.d for the moment
}
++/
bool _d_isHalting = false;
}
+/**
+ * Thrown on hidden function error.
+ */
+class HiddenFuncException : Exception
+{
+ this(ClassInfo ci)
+ {
+ super("hidden method called for " ~ ci.name);
+ }
+}
+
+
/**
* Thrown on an assert error.
*/
{
throw new UnicodeException( msg, idx );
}
+
+/********************************************
+ * Called by the compiler generated code.
+ */
+
+extern (C) void _d_hidden_func()
+{ Object o;
+ asm
+ {
+ mov o, EAX;
+ }
+
+ //printf("_d_hidden_func()\n");
+ auto a = new HiddenFuncException(o.classinfo);
+ //printf("assertion %p created\n", a);
+ throw a;
+}