last fixes for cc

seems like setup had just worked by chance and change broke that.
This commit is contained in:
2019-08-23 19:22:27 +03:00
parent 4ca16e5f9a
commit 1eb6430880
6 changed files with 17 additions and 7 deletions

View File

@ -9,7 +9,7 @@ module Mom
next_message! << message[:next_message]
factory[:next_object] << next_message
end
builder.reset_names
Mom::MessageSetup.new(Parfait.object_space.get_main).build_with( builder )
builder.build do

View File

@ -40,8 +40,8 @@ module Mom
# - call main, ie set up message for that etc
# - exit (exit_sequence) which passes a machine int out to c
def __init__( context )
compiler = Mom::MethodCompiler.compiler_for_class(:Object,:__init__ ,
Parfait::NamedList.type_for({}) , Parfait::NamedList.type_for({}))
compiler = compiler_for(:Object,:__init__ ,{})
compiler._reset_for_init # no return, just for init
compiler.add_code Init.new("missing")
return compiler
end