Skip to content

Instantly share code, notes, and snippets.

@fkaa
Created May 2, 2014 14:34
Show Gist options
  • Select an option

  • Save fkaa/a5707ac5fbe27d724e03 to your computer and use it in GitHub Desktop.

Select an option

Save fkaa/a5707ac5fbe27d724e03 to your computer and use it in GitHub Desktop.
#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