Files
EchoionCore/src/Export.cpp
T

20 lines
438 B
C++

#include <Export.hpp>
#include "echoion/core/Core.hpp"
#include <memory>
namespace Echoion::Api
{
CoreInterfacePtr CreateCore() { return std::make_shared<Core::Core>(); }
void DestroyCore(ICoreInterface* core) { delete core; }
const char* GetApiVersion() { return VERSION_STRING; }
bool IsApiCompatible(uint32_t major, uint32_t minor)
{
return major == VERSION_MAJOR && minor <= VERSION_MINOR;
}
} // namespace Echoion::Api