mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 19:07:15 +00:00
14 lines
423 B
C++
14 lines
423 B
C++
#pragma once
|
|
|
|
#include "IPlatformNetwork.h"
|
|
|
|
// Function accessor backed by a function-local static (Meyers singleton).
|
|
// Same shape as platform/profile/profile.h: avoids the static-init-order
|
|
// fiasco. Call sites use the existing `PlatformNetwork.foo()` form via
|
|
// the macro.
|
|
namespace platform_internal {
|
|
IPlatformNetwork& PlatformNetwork_get();
|
|
}
|
|
|
|
#define PlatformNetwork (::platform_internal::PlatformNetwork_get())
|