Skip to content

Commit

Permalink
Trying to get suitable replacement of inline packaging for Luis
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/RubyInline/dev/": change = 4423]
  • Loading branch information
zenspider committed Oct 24, 2008
1 parent 18080aa commit 41b9116
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/inline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ module Inline
"#{Gem.ruby} -S rake"
end


warn "RubyInline v #{VERSION}" if $DEBUG

protected
def self.register cls
registered_inline_classes << cls
registered_inline_classes.uniq!
end

def self.registered_inline_classes
@@registered_inline_classes ||= []
end

# rootdir can be forced using INLINEDIR variable
# if not defined, it should store in user HOME folder
Expand Down Expand Up @@ -784,6 +790,8 @@ class Module
# parameter.

def inline(lang = :C, options={})
Inline.register self

case options
when TrueClass, FalseClass then
warn "WAR\NING: 2nd argument to inline is now a hash, changing to {:testing=>#{options}}" unless options
Expand Down

0 comments on commit 41b9116

Please sign in to comment.