Add an annotation to skip including header files generated from specific
schema files. Some schema files (eg. those that only decalare annotations) do not actually result in any generated C code. They do not need to have a corresponding include directive for C files generated from schemas that include them. This introduces a "donotinclude" annotation that takes the Cap'n Proto ID (a UInt64) of any such files and skips generating the include directive for them.
This commit is contained in:
parent
9053ebe6ee
commit
b995a09c03
2 changed files with 89 additions and 0 deletions
|
|
@ -39,3 +39,7 @@ annotation fieldgetset @0xf72bc690355d66de (file): Void;
|
|||
# generate getter & setter functions for accessing fields
|
||||
#
|
||||
# allows grabbing/putting values without de-/encoding the entire struct.
|
||||
|
||||
annotation donotinclude @0x8c99797357b357e9 (file): UInt64;
|
||||
# do not generate an include directive for an import statement for the file with
|
||||
# the given ID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue