Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
Revision.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
15#pragma once
16
17#include "Types.hpp"
18
19#include <atomic>
20
21namespace esengine {
22
24inline u64 nextRevision() {
25 static std::atomic<u64> next{0};
26 return ++next;
27}
28
29} // namespace esengine
Core type definitions and utilities for ESEngine.
std::uint64_t u64
Unsigned 64-bit integer.
Definition Types.hpp:47
u64 nextRevision()
A revision no content has had before. Never 0, which reads as "none".
Definition Revision.hpp:24