2014-06-13 23:19:12 +02:00
|
|
|
module Crystal
|
|
|
|
module Kernel
|
|
|
|
def self.putstring context
|
2014-06-26 16:52:15 +02:00
|
|
|
function = Virtual::Function.new(:putstring , Virtual::Reference , [] )
|
|
|
|
ret = Virtual::RegisterMachine.instance.write_stdout(function)
|
2014-06-13 23:19:12 +02:00
|
|
|
function.set_return ret
|
|
|
|
function
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|