digitalmars.D.bugs - [Issue 22542] New: Explicitly cast backtrace results to int
- d-bugmail puremagic.com (23/23) Nov 24 2021 https://issues.dlang.org/show_bug.cgi?id=22542
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 puremagic.com Reporter: bcallah 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. --
Nov 24 2021