allow to set default group, cleanup, added support for overloaded procedures
[libt2n] / codegen / codegen-stubhead.hxx
CommitLineData
fdc716c2
JT
1#ifndef MINIMALISTIC_STUB_HXX
2#define MINIMALISTIC_STUB_HXX
3
4#include <boost/archive/binary_oarchive.hpp>
5#include <boost/archive/binary_iarchive.hpp>
6#include <boost/archive/xml_oarchive.hpp>
7#include <boost/archive/xml_iarchive.hpp>
8#include <boost/serialization/serialization.hpp>
9#include <boost/serialization/string.hpp>
9d3993e5 10#include <boost/serialization/utility.hpp>
fdc716c2
JT
11
12#include <string>
13#include <t2n_exception.hxx>
14#include <command.hxx>
15
16#ifdef __GCCXML__
4ddaa0f5
JT
17#define LIBT2N_SET_DEFAULTGROUP(x) namespace { typedef __attribute((gccxml("libt2n-"#x))) int libt2n_default_group; }
18/* not allowed anymore
19#define LIBT2N_SET_DEFAULTGROUP(x) #define LIBT2N_EXPORT __attribute((gccxml("libt2n-"#x)))
20*/
fdc716c2
JT
21#define LIBT2N_EXPORT __attribute((gccxml("libt2n-default")))
22#define LIBT2N_EXPORT_GROUP(group) __attribute((gccxml("libt2n-"#group)))
23#else
24#define LIBT2N_SET_DEFAULTGROUP(x)
25#define LIBT2N_EXPORT
26#define LIBT2N_EXPORT_GROUP(group)
27#endif
e035276b
JT
28
29#endif