C++ Logo

std-proposals

Advanced search

Re: [std-proposals] #include <debug>

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Thu, 28 Nov 2024 13:30:56 +0000
Another useful function:

    auto get_return_address(void) -> void (*&)(void);

It returns a reference to where the return address is stored on the
stack. I think it makes more sense for it to be a reference to a
pointer, than a pointer to a pointer, because it might be a register
instead of on the stack (e.g. the Link Register on 64-Bit ARM).

Received on 2024-11-28 13:31:11