C++ Logo

std-proposals

Advanced search

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

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Wed, 31 May 2023 10:05:00 +0200
Isn't this, what coroutines offer in a portable manner? With the std::coroutine_handle internally pointing to the coroutine state including the stack frame? -----Ursprüngliche Nachricht----- Von:Frederick Virchanza Gotham via Std-Proposals <std-proposals_at_[hidden]> Gesendet:Mi 31.05.2023 09:20 Betreff:[std-proposals] #include <call_stack> An:std-proposals <std-proposals_at_[hidden]>; CC:Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>; Another useful function for analysing and manipulating the stack would be as follows: void set_stack_pointer_and_invoke( char *custom_stack, void (*funcptr)(void) ); You would use this function to invoke another function with your own custom stack, for example:

Received on 2023-05-31 08:05:02