rubyx/lib/kernel/system.rb
2014-08-28 08:10:33 +03:00

12 lines
278 B
Ruby

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