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