[fpc-pascal] get_caller_frame

Ryan Joseph genericptr at gmail.com
Tue Nov 19 20:12:17 CET 2019


I came across get_caller_frame  in some unrelated code and I was just curious about this so I wanted to ask.

What does get_caller_frame return exactly? Is this a pointer to a stack frame that could be copied to the heap? I'm still interested in how we could add some form of coroutine like behaviors to pascal and so I was wondering if we could copy/restore the current stack pointer so that SetJmp and LongJmp would not blow things up.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list