rubyx/lib/kernel/system.rb
2014-07-12 21:59:17 +03:00

12 lines
271 B
Ruby

module Crystal
module Kernel
def self.exit context
function = Virtual::Method.new(:exit , [] , Virtual::Integer)
return function
ret = Virtual::RegisterMachine.instance.exit(function)
function.set_return ret
function
end
end
end