[Issue 22542] New: Explicitly cast backtrace results to int
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 25 02:42:34 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22542
Issue ID: 22542
Summary: Explicitly cast backtrace results to int
Product: D
Version: D2
Hardware: All
OS: Other
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: bcallah at openbsd.org
Hello --
I would like to explicitly cast the result on backtrace on Posix (non-Apple)
systems. For Linux, this app a no-op. However, on OpenBSD (and others?)
backtrace returns a size_t.
Note this is what LDC does:
https://github.com/ldc-developers/druntime/blob/ldc/src/core/runtime.d#L789
I need this in order to switch the OpenBSD backtrace implementation from a
handrolled version to the version built into OpenBSD. Both Linux and macOS use
their own built in versions.
--
More information about the Digitalmars-d-bugs
mailing list