1 #ifndef MINIMALISTIC_STUB_HXX
2 #define MINIMALISTIC_STUB_HXX
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>
11 #include <t2n_exception.hxx>
12 #include <command.hxx>
15 // used during parsing run with gccxml
17 /** @brief mark a function to export it via libt2n
20 LIBT2N_EXPORT std::string testfunc(std::string str)
26 #define LIBT2N_EXPORT __attribute((gccxml("libt2n-default")))
29 /** @brief tell libt2n about a default argument
30 @param _type type of the default argument
31 @param _value default value
34 LIBT2N_EXPORT std::string testfunc(LIBT2N_DEFAULT_ARG(const std::string str&,"hello world"))
40 #define LIBT2N_DEFAULT_ARG(_type,_value) __attribute((gccxml("libt2n-default-arg",#_value))) _type = _value
43 // used during regular compile
46 #define LIBT2N_DEFAULT_ARG(_type,_value) _type = _value