This commit is contained in:
Andrey 2022-11-28 20:51:17 -05:00
parent 4d9a0500d4
commit 25dc82176b
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ public class BaseCHeaderConsumer implements ConfigurationConsumer {
private static String getHeaderText(FieldIteratorWithOffset iterator) {
ConfigField configField = iterator.cf;
if (configField.isBit()) {
// unused bits are needed for proper struct memsize
String comment = "\t/**" + EOL + packComment(configField.getCommentContent(), "\t") + "\toffset " + iterator.currentOffset + " bit " + iterator.bitState.get() + " */" + EOL;
return comment + "\t" + BOOLEAN_TYPE + " " + configField.getName() + " : 1 {};" + EOL;
}