binpac: Add final keyword to class definitions

This commit is contained in:
Tim Wojtulewicz 2023-01-27 10:21:29 -07:00
parent 613ffef4a2
commit 45ef19049c

View file

@ -121,7 +121,7 @@ void TypeDecl::GenCode(Output* out_h, Output* out_cc)
// The first line of class definition // The first line of class definition
out_h->println(""); out_h->println("");
out_h->print("class %s", class_name().c_str()); out_h->print("class %s final", class_name().c_str());
bool first = true; bool first = true;
vector<string>::iterator i; vector<string>::iterator i;
for ( i = (&base_classes)->begin(); i != (&base_classes)->end(); ++i ) for ( i = (&base_classes)->begin(); i != (&base_classes)->end(); ++i )