2020-03-28 16:21:10 +01:00
|
|
|
// Copyright 2020 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-03-29 12:39:46 +02:00
|
|
|
#include <boost/archive/binary_iarchive.hpp>
|
2020-03-31 18:54:28 +02:00
|
|
|
#include <boost/archive/binary_oarchive.hpp>
|
|
|
|
#include <boost/serialization/export.hpp>
|
2019-08-06 16:59:31 +02:00
|
|
|
|
2019-08-07 18:08:52 +02:00
|
|
|
using iarchive = boost::archive::binary_iarchive;
|
|
|
|
using oarchive = boost::archive::binary_oarchive;
|
|
|
|
|
2019-12-27 22:07:29 +01: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 16:19:45 +02:00
|
|
|
|
2019-12-27 22:07:29 +01:00
|
|
|
#define SERIALIZE_EXPORT_IMPL(A) \
|
2020-01-08 23:13:56 +01:00
|
|
|
BOOST_CLASS_EXPORT_IMPLEMENT(A) \
|
2019-12-27 22:07:29 +01:00
|
|
|
BOOST_SERIALIZATION_REGISTER_ARCHIVE(iarchive) \
|
2020-01-07 00:20:18 +01:00
|
|
|
BOOST_SERIALIZATION_REGISTER_ARCHIVE(oarchive)
|