Skip to content

Instantly share code, notes, and snippets.

@bossjones
Created April 16, 2014 03:06
Show Gist options
  • Save bossjones/10801775 to your computer and use it in GitHub Desktop.
Save bossjones/10801775 to your computer and use it in GitHub Desktop.
Nathan snippet
int
main(int argc, char *argv[])
{
ruby_init();
ruby_init_loadpath();
int error;
rb_protect( RUBY_METHOD_FUNC(rb_require), (VALUE) "./voice_control", &error);
if (error) {
printf("Error requiring voice_control.rb!: %d\n", error);
return 1;
}
rbMicrowaveModule = rb_const_get(rb_cObject, rb_intern("Microwave"));
rbVoiceControlModule = rb_const_get(rbMicrowaveModule, rb_intern("VoiceControl"));
char const *cfg;
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment