-
-#define TESTCLASSID_FACTORY(c, f) { delete testClass(f, #c, #f, c ::getStaticClassID()); if(U_FAILURE(status)) { errln(UnicodeString(#c " - " #f " - got err status ") + UnicodeString(u_errorName(status))); status = U_ZERO_ERROR; } }
-#define TESTCLASSID_TRANSLIT(c, t) { delete testClass(Transliterator::createInstance(UnicodeString(t), UTRANS_FORWARD,parseError,status), #c, "Transliterator: " #t, c ::getStaticClassID()); if(U_FAILURE(status)) { errln(UnicodeString(#c " - Transliterator: " #t " - got err status ") + UnicodeString(u_errorName(status))); status = U_ZERO_ERROR; } }
-#define TESTCLASSID_CTOR(c, x) { delete testClass(new c x, #c, "new " #c #x, c ::getStaticClassID()); if(U_FAILURE(status)) { errln(UnicodeString(#c " - new " #x " - got err status ") + UnicodeString(u_errorName(status))); status = U_ZERO_ERROR; } }
-#define TESTCLASSID_DEFAULT(c) delete testClass(new c, #c, "new " #c , c::getStaticClassID())
-#define TESTCLASSID_ABSTRACT(c) testClass(NULL, #c, NULL, c::getStaticClassID())
+#define TESTCLASSID_NONE_DEFAULT(c) \
+ delete testClassNoClassID(new c, #c, "new " #c)
+#define TESTCLASSID_NONE_CTOR(c, x) { \
+ delete testClassNoClassID(new c x, #c, "new " #c #x); \
+ if(U_FAILURE(status)) { \
+ dataerrln(UnicodeString(#c " - new " #x " - got err status ") + UnicodeString(u_errorName(status))); \
+ status = U_ZERO_ERROR; \
+ } \
+}
+#define TESTCLASSID_NONE_FACTORY(c, f) { \
+ delete testClassNoClassID(f, #c, #f); \
+ if(U_FAILURE(status)) { \
+ dataerrln(UnicodeString(#c " - " #f " - got err status ") + UnicodeString(u_errorName(status))); \
+ status = U_ZERO_ERROR; \
+ } \
+}
+#define TESTCLASSID_FACTORY(c, f) { \
+ delete testClass(f, #c, #f, c ::getStaticClassID()); \
+ if(U_FAILURE(status)) { \
+ dataerrln(UnicodeString(#c " - " #f " - got err status ") + UnicodeString(u_errorName(status))); \
+ status = U_ZERO_ERROR; \
+ } \
+}
+#define TESTCLASSID_TRANSLIT(c, t) { \
+ delete testClass(Transliterator::createInstance(UnicodeString(t), UTRANS_FORWARD,parseError,status), #c, "Transliterator: " #t, c ::getStaticClassID()); \
+ if(U_FAILURE(status)) { \
+ dataerrln(UnicodeString(#c " - Transliterator: " #t " - got err status ") + UnicodeString(u_errorName(status))); \
+ status = U_ZERO_ERROR; \
+ } \
+}
+#define TESTCLASSID_CTOR(c, x) { \
+ delete testClass(new c x, #c, "new " #c #x, c ::getStaticClassID()); \
+ if(U_FAILURE(status)) { \
+ dataerrln(UnicodeString(#c " - new " #x " - got err status ") + UnicodeString(u_errorName(status))); \
+ status = U_ZERO_ERROR; \
+ } \
+}
+#define TESTCLASSID_DEFAULT(c) \
+ delete testClass(new c, #c, "new " #c , c::getStaticClassID())
+#define TESTCLASSID_ABSTRACT(c) \
+ testClass(NULL, #c, NULL, c::getStaticClassID())
+#define TESTCLASSID_FACTORY_HIDDEN(c, f) { \
+ UObject *objVar = f; \
+ delete testClass(objVar, #c, #f, objVar!=NULL? objVar->getDynamicClassID(): NULL); \
+ if(U_FAILURE(status)) { \
+ dataerrln(UnicodeString(#c " - " #f " - got err status ") + UnicodeString(u_errorName(status))); \
+ status = U_ZERO_ERROR; \
+ } \
+}