Sha256: bb3f1c331e20e59dc6163d59830283f645b3d5d6c78e2a00189c4be40b4287e1

Contents?: true

Size: 237 Bytes

Versions: 46

Compression:

Stored size: 237 Bytes

Contents

#!/usr/local/bin/ruby -w

begin require 'rubygems' rescue LoadError end
require 'inline'

class Hello
  inline do |builder|
    builder.include "<stdio.h>"
    builder.c 'void hello() { puts("hello world"); }'
  end
end

Hello.new.hello

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
RubyInline-3.14.1 demo/hello.rb
RubyInline-3.14.0 demo/hello.rb
RubyInline-3.13.0 demo/hello.rb
RubyInline-3.12.6 demo/hello.rb
RubyInline-3.12.5 demo/hello.rb
RubyInlineWithoutZenTest-3.12.4.1 demo/hello.rb
RubyInlineWithoutZenTest-3.12.4 demo/hello.rb
RubyInline-3.12.4 demo/hello.rb
RubyInline-3.12.3 demo/hello.rb
RubyInlineWithoutZenTest-3.12.2 demo/hello.rb
RubyInline-3.12.2 demo/hello.rb
RubyInline-3.12.1 demo/hello.rb
RubyInline-3.12.0 demo/hello.rb
RubyInline-3.11.4 demo/hello.rb
RubyInline-3.11.3 demo/hello.rb
RubyInline-3.11.2 demo/hello.rb
RubyInline-3.11.1 demo/hello.rb
RubyInline-3.11.0 demo/hello.rb
RubyInline-3.10.1 demo/hello.rb
RubyInline-3.10.0 demo/hello.rb