On Fri, 27 Jan 2023 at 13:49, Tom Kacvinsky via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > You can do a callback (using function pointers) in C++ code. > > https://en.cppreference.com/w/cpp/language/pointer That's not what the OP is asking about though.