Comment #0 by jens.k.mueller — 2012-09-13T15:34:59Z
When you use assert you get different output depending on whether a message was given or not.
The reason is that dmd calls _d_assertm if no message was given and _d_assert_msg if a message was given.
This is all fine except that when calling _d_assertm instead of the filename the module name is used. In glue.c around line 478 when calling _d_assertm only the line number is computed. In my opinion _d_assertm should be changed to accept a string for the filename instead of a ModuleInfo*.
I would like to make the needed changes myself but I need assistance because I'm quite lost in the backend/glue code.
Comment #1 by razvan.nitu1305 — 2022-09-08T09:07:15Z
```
void main()
{
assert(0);
}
```
Result: [email protected](3): Assertion failure
```
void main()
{
assert(0, "le message");
}
```
Result: [email protected](3): le message
Seems to be fixed.