Bug 17499 – with -betterC switch, call C's assert failure function rather than druntime's

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-13T19:03:40Z
Last change time
2017-08-16T13:22:31Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2017-06-13T19:03:40Z
This will fit in with incrementally adding D modules to existing C projects, as using assert() won't require linking in druntime.
Comment #1 by github-bugzilla — 2017-06-18T20:40:39Z
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f00fd3ea6bb5eb10f9d59ba3e2a0910370e12ad7 Merge pull request #6901 from WalterBright/betterC-assert fix Issue 17499 - with -betterC switch, call C's assert failure function rather than druntime's merged-on-behalf-of: Daniel Murphy <[email protected]>
Comment #2 by github-bugzilla — 2017-08-07T13:16:52Z
Commit pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f00fd3ea6bb5eb10f9d59ba3e2a0910370e12ad7 Merge pull request #6901 from WalterBright/betterC-assert
Comment #3 by github-bugzilla — 2017-08-16T13:22:31Z
Commit pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/f00fd3ea6bb5eb10f9d59ba3e2a0910370e12ad7 Merge pull request #6901 from WalterBright/betterC-assert