Sha256: 903340257d78bf0b1313d524aadbe2f571d3e066a0668460b4cdb0a4d7b7128e

Contents?: true

Size: 498 Bytes

Versions: 46

Compression:

Stored size: 498 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

46 entries across 46 versions & 2 rubygems

Version Path
rhodes-5.5.18 platform/shared/ruby/goruby.c
rhodes-5.5.17 platform/shared/ruby/goruby.c
rhodes-5.5.15 platform/shared/ruby/goruby.c
rhodes-5.5.0.22 platform/shared/ruby/goruby.c
rhodes-5.5.2 platform/shared/ruby/goruby.c
rhodes-5.5.0.7 platform/shared/ruby/goruby.c
rhodes-5.5.0.3 platform/shared/ruby/goruby.c
rhodes-5.5.0 platform/shared/ruby/goruby.c
tauplatform-1.0.3 platform/shared/ruby/goruby.c
tauplatform-1.0.2 platform/shared/ruby/goruby.c
tauplatform-1.0.1 platform/shared/ruby/goruby.c
rhodes-3.5.1.12 platform/shared/ruby/goruby.c
rhodes-3.3.5 platform/shared/ruby/goruby.c
rhodes-3.4.2 platform/shared/ruby/goruby.c
rhodes-3.3.4 platform/shared/ruby/goruby.c
rhodes-3.3.3 platform/shared/ruby/goruby.c
rhodes-3.3.3.beta.4 platform/shared/ruby/goruby.c
rhodes-3.3.3.beta.3 platform/shared/ruby/goruby.c
rhodes-3.3.3.beta.2 platform/shared/ruby/goruby.c
rhodes-3.3.3.beta.1 platform/shared/ruby/goruby.c