mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-17 16:13:21 +00:00
14 lines
466 B
C++
14 lines
466 B
C++
#pragma once
|
|
|
|
#include "IPlatformLeaderboard.h"
|
|
|
|
// Function accessor backed by a function-local static (Meyers singleton).
|
|
// Same shape as platform/profile/profile.h: avoids the static-init-order
|
|
// fiasco and lets call sites use the existing `PlatformLeaderboard.foo()`
|
|
// shape via the macro expansion.
|
|
namespace platform_internal {
|
|
IPlatformLeaderboard& PlatformLeaderboard_get();
|
|
}
|
|
|
|
#define PlatformLeaderboard (::platform_internal::PlatformLeaderboard_get())
|