rubyx/lib/kernel/system.rb

12 lines
282 B
Ruby
Raw Normal View History

module Sapphire
module Kernel
def self.exit context
2014-07-16 18:24:41 +02:00
function = Virtual::MethodDefinition.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