Export id generated by becsID

This commit is contained in:
Michał Masiukiewicz 2022-11-08 22:05:57 +01:00
parent 6c4109d86c
commit 7a614686c8

View file

@ -11,8 +11,11 @@ import std.traits;
*/
ref ushort becsID(T)()
{
__gshared ushort id = ushort.max;
return id;
/// Embed id in struct so export can be added to variable definition
static struct LocalStruct {
export __gshared ushort id = ushort.max;
}
return LocalStruct.id;
}
/************************************************************************************************************************