Skip to content

Instantly share code, notes, and snippets.

@kbarber
Created August 11, 2011 13:13

Revisions

  1. kbarber revised this gist Aug 15, 2011. 1 changed file with 6 additions and 9 deletions.
    15 changes: 6 additions & 9 deletions gistfile1.c
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,9 @@
    #include <ruby.h>

    int main(int argc, char *argv[])
    {
    ruby_init();
    ruby_init_loadpath();
    rb_load_file(argv[1]);
    ruby_exec();
    //ruby_run();
    //ruby_finalize();
    return 0;
    int main(int argc, char *argv[]) {
    ruby_init();
    ruby_init_loadpath();
    rb_load_file(argv[1]);
    ruby_exec();
    return 0;
    }
  2. kbarber created this gist Aug 11, 2011.
    12 changes: 12 additions & 0 deletions gistfile1.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #include <ruby.h>

    int main(int argc, char *argv[])
    {
    ruby_init();
    ruby_init_loadpath();
    rb_load_file(argv[1]);
    ruby_exec();
    //ruby_run();
    //ruby_finalize();
    return 0;
    }