rubyx/lib/kernel/system.rb

12 lines
282 B
Ruby

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