citra/src/common/archives.h

15 lines
780 B
C++
Raw Normal View History

2019-08-06 15:59:31 +01:00
#include "boost/archive/binary_iarchive.hpp"
#include "boost/archive/binary_oarchive.hpp"
2019-12-22 23:37:17 +00:00
#include "boost/serialization/export.hpp"
2019-08-06 15:59:31 +01:00
2019-08-07 17:08:52 +01:00
using iarchive = boost::archive::binary_iarchive;
using oarchive = boost::archive::binary_oarchive;
2019-12-27 21:07:29 +00:00
#define SERIALIZE_IMPL(A) \
template void A::serialize<iarchive>(iarchive & ar, const unsigned int file_version); \
template void A::serialize<oarchive>(oarchive & ar, const unsigned int file_version);
2019-08-11 15:19:45 +01:00
2019-12-27 21:07:29 +00:00
#define SERIALIZE_EXPORT_IMPL(A) \
BOOST_SERIALIZATION_REGISTER_ARCHIVE(iarchive) \
2020-01-06 23:20:18 +00:00
BOOST_SERIALIZATION_REGISTER_ARCHIVE(oarchive)