ref: 690ab7aa8e6c56a4ae8a2bd5bce58d1df681234e
dir: /lib/std/backtrace+x64.myr/
use "types" pkg std = const backtrace : (pc : void#[:] -> std.size) ;; type stackrec = struct next : stackrec# pc : void# ;; extern const getbp : (-> stackrec#) const backtrace = {pc var bp, i, len i = 0 len = pc.len bp = getbp() while bp != (0 : stackrec#) && i < len pc[i++] = bp.pc bp = bp.next ;; -> i }