11 lines
273 B
Ruby
11 lines
273 B
Ruby
module Crystal
|
|
module Kernel
|
|
def self.putstring context
|
|
function = Virtual::Function.new(:putstring , Virtual::Reference , [] )
|
|
ret = Virtual::RegisterMachine.instance.write_stdout(function)
|
|
function.set_return ret
|
|
function
|
|
end
|
|
end
|
|
end
|