Created
May 24, 2021 22:41
-
-
Save germandiagogomez/f1d6a4d8d4896787404d5ae8d4ea2355 to your computer and use it in GitHub Desktop.
Function Parameters can take callback from ChaiScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// C++ side | |
// void f(std::function<void (MyRegisteredClass)> callback); | |
... | |
chai.add(fun(f), "f"); | |
//chaiscript side | |
f([](myObject) { | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment