Created
May 2, 2014 14:34
-
-
Save fkaa/a5707ac5fbe27d724e03 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #include <iostream> | |
| #include <v8.h> | |
| #include "kohv.h" | |
| using namespace v8; | |
| int main(int argc, const char * argv[]) { | |
| Kohv::initialize(); | |
| Context::Scope context_scope(Kohv::global_context); | |
| Kohv::eval_coffee(KOHV( | |
| class Foo\n | |
| constructor: (@test) ->\n | |
| log("foo: " + new Foo("moo").test); | |
| )); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment