assert(0) behavior
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 4 17:44:56 PDT 2015
On 8/4/15 7:33 PM, Walter Bright wrote:
> On 8/4/2015 2:07 PM, Steven Schveighoffer wrote:
>> With druntime it's difficult to actually print the message
>
> fprintf(stderr, "You left the headlights on.");
> assert(0);
Going under the assumption that the program isn't fully "with it", I
don't want to use such complicated libraries as stdio.
In any case, the PR I have does it with system calls only.
-Steve
More information about the Digitalmars-d
mailing list