[Issue 3208] setAssertHandler leads to segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 16 08:36:57 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=3208
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dmitry.olsh at gmail.com
Resolution|--- |WORKSFORME
--- Comment #5 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
This now works but setAssertHandler is deprecated, heh:
//
import core.exception;
nothrow void handleAssertion(string file, size_t line, string msg = null) {}
static this()
{
setAssertHandler( &handleAssertion );
}
void main()
{
assert(false);
}
--
More information about the Digitalmars-d-bugs
mailing list