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
21
namespace
esengine
{
22
24
inline
u64
nextRevision
() {
25
static
std::atomic<u64> next{0};
26
return
++next;
27
}
28
29
}
// namespace esengine
Types.hpp
Core type definitions and utilities for ESEngine.
esengine
Definition
EasingFunctions.hpp:10
esengine::u64
std::uint64_t u64
Unsigned 64-bit integer.
Definition
Types.hpp:47
esengine::nextRevision
u64 nextRevision()
A revision no content has had before. Never 0, which reads as "none".
Definition
Revision.hpp:24
src
esengine
core
Revision.hpp
Generated by
1.15.0