Sha256: 886edcc2730de075982905540ed4ea9f5dec008392eedb9f4c6c68a135818513

Contents?: true

Size: 499 Bytes

Versions: 84

Compression:

Stored size: 499 Bytes

Contents

void Init_golf(void); 
#define ruby_run_node goruby_run_node
#include "main.c"
#undef ruby_run_node

RUBY_EXTERN int ruby_run_node(void*);
RUBY_EXTERN void ruby_init_ext(const char *name, void (*init)(void));

static VALUE
init_golf(VALUE arg)
{
    ruby_init_ext("golf", Init_golf);
    return arg;
}

int
goruby_run_node(void *arg)
{
    int state;
    if (NIL_P(rb_protect(init_golf, Qtrue, &state))) {
	return state == EXIT_SUCCESS ? EXIT_FAILURE : state;
    }
    return ruby_run_node(arg);
}

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
rhodes-3.1.1 platform/shared/ruby/goruby.c
rhodes-3.1.1.beta platform/shared/ruby/goruby.c
rhodes-3.1.0 platform/shared/ruby/goruby.c
rhodes-3.1.0.beta.5 platform/shared/ruby/goruby.c
rhodes-3.1.0.beta.4 platform/shared/ruby/goruby.c
rhodes-3.1.0.beta.3 platform/shared/ruby/goruby.c
rhodes-3.1.0.beta.2 platform/shared/ruby/goruby.c
rhodes-3.1.0.beta.1 platform/shared/ruby/goruby.c
rhodes-3.0.2 platform/shared/ruby/goruby.c
rhodes-3.0.2.beta.1 platform/shared/ruby/goruby.c
rhodes-3.0.1 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.8 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.7 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.6 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.5 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.4 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.3 platform/shared/ruby/goruby.c
rhodes-3.0.1.beta.2 platform/shared/ruby/goruby.c
rhodes-3.0.0 platform/shared/ruby/goruby.c
rhodes-3.0.0.beta.7 platform/shared/ruby/goruby.c