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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to