2014-07-17 00:00:15 +02:00
|
|
|
module Sapphire
|
2014-06-13 23:19:12 +02:00
|
|
|
module Kernel
|
|
|
|
def self.exit context
|
2014-07-16 18:24:41 +02:00
|
|
|
function = Virtual::MethodDefinition.new(:exit , [] , Virtual::Integer)
|
2014-07-12 20:59:17 +02:00
|
|
|
return function
|
2014-06-26 16:52:15 +02:00
|
|
|
ret = Virtual::RegisterMachine.instance.exit(function)
|
2014-06-13 23:19:12 +02:00
|
|
|
function.set_return ret
|
|
|
|
function
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|