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@lists.isocpp.org>
Gesendet: Mi 31.05.2023 09:20
Betreff: [std-proposals] #include <call_stack>
An: std-proposals <std-proposals@lists.isocpp.org>;
CC: Frederick Virchanza Gotham <cauldwell.thomas@gmail.com>;
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: