These are chat archives for ChaiScript/ChaiScript

Mar 2016
Taylor Russ
Mar 27 2016 22:28
hey guys - this may be a stupid question, but it isn't obvious to me from the docs - how can I pass a callback to a ChaiScript function to a C++ function which accepts a callback as parameter? like a c++ function which accepts std::function<void()>& ? I've seen the examples online of how to setup an events system, which seems more global than what i'm looking for. The use case is that I have some async events I want to handle and notify chaiscript once the actions are complete, and I don't want to use a generic event system - i'd rather pass a specific callback instance.