rubyx/lib/kernel/system.rb

12 lines
271 B
Ruby
Raw Normal View History

module Crystal
module Kernel
def self.exit context
function = Virtual::Method.new(:exit , [] , Virtual::Integer)
return function
2014-06-26 16:52:15 +02:00
ret = Virtual::RegisterMachine.instance.exit(function)
function.set_return ret
function
end
end
end