mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-03 16:52:33 +00:00
17 lines
513 B
C++
17 lines
513 B
C++
#pragma once
|
|
|
|
#include "platform/sound/IPlatformSound.h"
|
|
|
|
// Function accessor backed by a function-local static (Meyers singleton).
|
|
// Same pattern as input/renderer/profile/storage/fs - SIOF-safe.
|
|
//
|
|
// The macro lets call sites keep using `PlatformSound.foo()` syntax;
|
|
// the expansion is just a function call returning a reference, which
|
|
// LTO inlines.
|
|
|
|
namespace platform_internal {
|
|
::platform::sound::IPlatformSound& PlatformSound_get();
|
|
}
|
|
|
|
#define PlatformSound (::platform_internal::PlatformSound_get())
|