rubyx/lib/register/builtin/word.rb
Torsten Ruger 7e0778dc70 remove return_type
soon to be obsolete with multi returns
2015-10-28 12:19:10 +02:00

16 lines
422 B
Ruby

module Register
module Builtin
module Word
module ClassMethods
def putstring context
function = MethodSource.create_method(:Word , :putstring , [] )
function.source.add_code Register.get_slot( function , :message , :receiver , :new_message )
Kernel.emit_syscall( function , :putstring )
function
end
end
extend ClassMethods
end
end
end