Skip to content

Instantly share code, notes, and snippets.

@tmladek
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmladek/c01ff6ffc6e5a45ce022 to your computer and use it in GitHub Desktop.
Save tmladek/c01ff6ffc6e5a45ce022 to your computer and use it in GitHub Desktop.
Class :: Class(){
chai.add(chaiscript::fun(&Class::print, this), "print");
}
void Class :: print(std::string text){
do_stuff_with(text);
}
class Class {
protected:
chaiscript::ChaiScript chai;
...
void print(std::string);
public:
Class();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment