File tree Expand file tree Collapse file tree
bindings/cpp/include/svs/runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121// /
2222// / This header defines the SVS Runtime API versioning scheme:
2323// / 1. Versioned namespaces (e.g., v0, v1) for API stability
24- // / 2. Using declarations to bring current version to parent namespace
24+ // / 2. Inline namespace to expose the current API version at svs::runtime::*
2525// / 3. Clean integration points for external libraries
2626// /
2727// / Usage:
5959#define SVS_RUNTIME_API_VERSION SVS_RUNTIME_VERSION_MAJOR
6060#endif
6161
62- #define SVS_API_VERSION_NS (version ) v##version
62+ #define SVS_API_VERSION_NS_IMPL (version ) v##version
63+ #define SVS_API_VERSION_NS (version ) SVS_API_VERSION_NS_IMPL (version)
6364#define SVS_RUNTIME_API_VERSION_NAMESPACE SVS_API_VERSION_NS (SVS_RUNTIME_API_VERSION )
6465
6566#if (SVS_RUNTIME_API_VERSION == 0)
@@ -86,7 +87,8 @@ inline namespace v0 {}
8687 namespace alias_name = svs::runtime::version_ns
8788
8889// / Helper macro to declare versioned namespaces for API definitions
89- #define SVS_DECLARE_NAMESPACE_VERSION (version ) SVS_DECLARE_NAMESPACE_VERSION_ ##version
90+ #define SVS_DECLARE_NAMESPACE_VERSION_IMPL (version ) SVS_DECLARE_NAMESPACE_VERSION_ ##version
91+ #define SVS_DECLARE_NAMESPACE_VERSION (version ) SVS_DECLARE_NAMESPACE_VERSION_IMPL (version)
9092
9193// /
9294// / @brief Version information structure for runtime queries
You can’t perform that action at this time.
0 commit comments