Migrate to VoidLibrary (toolchain + API groundwork)

This commit is contained in:
faumaray committed 2026-06-22 15:53:18 +03:00
1 parent 5e1e3d66c4
commit e17cfed56f
38 files changed
+3077 -2505

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
#pragma once
#include "CoreInterface.hpp"
// Platform-specific export macros
#ifdef _WIN32
#ifdef ECHOION_API_EXPORT
#define ECHOION_API __declspec(dllexport)
#else
#define ECHOION_API __declspec(dllimport)
#endif
#else
#define ECHOION_API __attribute__((visibility("default")))
#endif
namespace Echoion::Api
{
// API export functions
extern "C" {
// Create a new core instance
ECHOION_API CoreInterfacePtr CreateCore();
// Destroy a core instance
ECHOION_API void DestroyCore(ICoreInterface* core);
// Get API version
ECHOION_API const char* GetApiVersion();
// Check if API is compatible
ECHOION_API bool IsApiCompatible(uint32_t major, uint32_t minor);
}
} // namespace Echoion::Api