Pass a Closure to a Function Pointer -- How libffi closure works

Callbacks

As is often the case, a lib written in C

Article Link: Pass a Closure to a Function Pointer -- How libffi closure works