1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 16:23:39 +02:00
- Don't make this member appear in docs (hopefully) - by marking it as `package

Messages

- Don't make this member appear in docs (hopefully) - by marking it as `package
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-19 12:24:11 +02:00
parent fd1f204f91
commit 58d3be3806
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import birchwood.client.events;
import dlog; import dlog;
__gshared Logger logger; package __gshared Logger logger;
__gshared static this() __gshared static this()
{ {
logger = new DefaultLogger(); logger = new DefaultLogger();

View File

@ -13,7 +13,7 @@ import std.stdio : writeln;
/* Static is redundant as module is always static , gshared needed */ /* Static is redundant as module is always static , gshared needed */
/* Apparebky works without gshared, that is kinda sus ngl */ /* Apparebky works without gshared, that is kinda sus ngl */
__gshared Logger logger; package __gshared Logger logger;
/** /**
* source/birchwood/messages.d(10,8): Error: variable `birchwood.messages.logger` is a thread-local class and cannot have a static initializer. Use `static this()` to initialize instead. * source/birchwood/messages.d(10,8): Error: variable `birchwood.messages.logger` is a thread-local class and cannot have a static initializer. Use `static this()` to initialize instead.
* *