12 lines
279 B
Ruby
12 lines
279 B
Ruby
module Builtin
|
|
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
|