return;
}
- if (!c.external) {
+ if (!c.external || (c.source_type == SourceFileType.FAST && c.value != null)) {
generate_type_declaration (c.type_reference, decl_space);
c.value.emit (this);
if (!external) {
if (value == null) {
- error = true;
- Report.error (source_reference, "A const field requires a value to be provided");
+ // constants from fast-vapi files are special
+ if (source_type != SourceFileType.FAST) {
+ error = true;
+ Report.error (source_reference, "A const field requires a value to be provided");
+ }
} else {
value.target_type = type_reference;