Files
XCEngine/new_editor/app/State/EditorSelectionStamp.h

14 lines
307 B
C++

#pragma once
#include <atomic>
#include <cstdint>
namespace XCEngine::UI::Editor::App {
inline std::uint64_t GenerateEditorSelectionStamp() {
static std::atomic<std::uint64_t> counter = 0u;
return counter.fetch_add(1u, std::memory_order_relaxed) + 1u;
}
} // namespace XCEngine::UI::Editor::App