Export id generated by becsID
This commit is contained in:
parent
6c4109d86c
commit
7a614686c8
1 changed files with 5 additions and 2 deletions
|
|
@ -11,8 +11,11 @@ import std.traits;
|
||||||
*/
|
*/
|
||||||
ref ushort becsID(T)()
|
ref ushort becsID(T)()
|
||||||
{
|
{
|
||||||
__gshared ushort id = ushort.max;
|
/// Embed id in struct so export can be added to variable definition
|
||||||
return id;
|
static struct LocalStruct {
|
||||||
|
export __gshared ushort id = ushort.max;
|
||||||
|
}
|
||||||
|
return LocalStruct.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************************************************
|
/************************************************************************************************************************
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue