rubyx/lib/mom/macro/method_missing.rb

14 lines
373 B
Ruby
Raw Normal View History

module Mom
2019-09-11 19:17:43 +02:00
class MethodMissing < Macro
def to_risc(compiler)
builder = compiler.builder(compiler.source_name)
builder.build do
factory! << Parfait.object_space.get_factory_for(:Integer)
integer_tmp! << factory[:reserve]
Mom::Macro.emit_syscall( builder , :died ) #uses integer_tmp
end
return compiler
end
end
end