nicer output
[libt2n] / examples / minimalistic-stub.hxx
index 7888989..7516a31 100644 (file)
 #include <t2n_exception.hxx>
 #include <command.hxx>
 
-#ifdef _GCCXML__
-#define LIBT2P_EXPORT __attribute((gccxml("libt2n")))
+#ifdef __GCCXML__
+#define LIBT2N_SET_DEFAULTGROUP(x) namespace { typedef __attribute((gccxml(#x))) int libt2n_default; }
+#define LIBT2N_EXPORT __attribute((gccxml("libt2n-default")))
+#define LIBT2N_EXPORT_GROUP(group) __attribute((gccxml("libt2n-"#group)))
 #else
-#define LIBT2P_EXPORT
+#define LIBT2N_SET_DEFAULTGROUP(x)
+#define LIBT2N_EXPORT
+#define LIBT2N_EXPORT_GROUP(group)
 #endif
 
 class cmd_group_example : public libt2n::command