C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Monitor recursion by checking the frame pointer

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 17 Apr 2023 16:53:55 -0700
On Monday, 17 April 2023 13:42:31 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> I was also thinking..... if we were to have access to the return
> address, then we could query whether the return address is within a
> given function, for example:

That assumes that functions are contiguous blocks. They aren't.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-04-17 23:53:57