are there any examples on how to embed GSI within a C/C++ program?

in my case the C core must do some initialization before starting the GSI/REPL.