- Updated `shout()` to remove rolling
- Removed `roll()`
- Added function and module name as well
This commit is contained in:
Tristan B. Velloza Kildaire 2023-12-23 22:40:27 +02:00
parent fdd7732245
commit 13a7b52bbd
1 changed files with 2 additions and 8 deletions

View File

@ -684,15 +684,9 @@ public final class BasicLexer : LexerInterface
}
}
private int rolled = 0;
private int roll()
private void shout(int i = __LINE__, string mod = __MODULE__, string func = __FUNCTION__)
{
return rolled++;
}
private void shout(int i = __LINE__)
{
gprintln("Unittest ("~to!(string)(roll())~") at "~to!(string)(i));
gprintln("Unittest at "~to!(string)(i)~" in "~func~" (within module "~mod~")");
}
/* Test input: `hello "world";` */