1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-11 15:49:38 +00:00

Use launch-time declarations.

This commit is contained in:
Thomas Harte 2024-12-06 16:03:46 -05:00
parent 58ed63cd18
commit e9826d2e7e

View File

@ -54,8 +54,10 @@ struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Ta
bool has_c1540 = false; bool has_c1540 = false;
std::string loading_command; std::string loading_command;
Target() : Analyser::Static::Target(Machine::Vic20) { Target() : Analyser::Static::Target(Machine::Vic20) {}
if(needs_declare()) {
private:
BEGIN_DECLARATIONS
DeclareField(enabled_ram.bank0); DeclareField(enabled_ram.bank0);
DeclareField(enabled_ram.bank1); DeclareField(enabled_ram.bank1);
DeclareField(enabled_ram.bank2); DeclareField(enabled_ram.bank2);
@ -64,8 +66,7 @@ struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Ta
DeclareField(region); DeclareField(region);
DeclareField(has_c1540); DeclareField(has_c1540);
AnnounceEnum(Region); AnnounceEnum(Region);
} END_DECLARATIONS
}
}; };
} }