Files
anm2ed/src/uid.h
T
shweet 7afdf709c3 Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
2026-11-22 17:30:03 -05:00

12 lines
204 B
C++

#pragma once
#include <atomic>
#include <cstdint>
// Process-unique, never reused. 0 means "none".
inline std::uint64_t uid_next()
{
static std::atomic<std::uint64_t> next = 1;
return next++;
}