BasicLexer (unittests)

- Only compile-in `shourt(...)` when in unittest build mode
This commit is contained in:
Tristan B. Velloza Kildaire 2023-12-24 16:58:25 +02:00
parent e00930670f
commit 98784847c7
1 changed files with 14 additions and 11 deletions

View File

@ -700,18 +700,21 @@ public final class BasicLexer : LexerInterface
}
}
/**
* Does a print out of some text just to show you
* where you are from within the caller
*
* Params:
* __LINE__ = line number (auto-filled)
* __MODULE__ = module name (auto-filled)
* __FUNCTION__ = function name (auto-filled)
*/
private void shout(int i = __LINE__, string mod = __MODULE__, string func = __FUNCTION__)
version(unittest)
{
gprintln("Unittest at "~to!(string)(i)~" in "~func~" (within module "~mod~")");
/**
* Does a print out of some text just to show you
* where you are from within the caller
*
* Params:
* __LINE__ = line number (auto-filled)
* __MODULE__ = module name (auto-filled)
* __FUNCTION__ = function name (auto-filled)
*/
private void shout(int i = __LINE__, string mod = __MODULE__, string func = __FUNCTION__)
{
gprintln("Unittest at "~to!(string)(i)~" in "~func~" (within module "~mod~")");
}
}
/**