File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,10 @@ ContainerInfo::ContainerInfo(const fs::path& path) {
269
269
codegenToml[" traversal_func" ].value <std::string>()) {
270
270
codegen.traversalFunc = std::move (*str);
271
271
}
272
+ if (std::optional<std::string> str =
273
+ codegenToml[" extra" ].value <std::string>()) {
274
+ codegen.extra = std::move (*str);
275
+ }
272
276
273
277
if (toml::array* arr = codegenToml[" processor" ].as_array ()) {
274
278
codegen.processors .reserve (arr->size ());
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ struct ContainerInfo {
37
37
std::string func;
38
38
std::string handler = " " ;
39
39
std::string traversalFunc = " " ;
40
+ std::string extra = " " ;
40
41
std::vector<Processor> processors{};
41
42
};
42
43
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ This document describes the format of the container definition files contained i
48
48
` static types::st::Unit<DB> getSizeType(const T& container, ST returnArg) `
49
49
where ` ST ` defines the combined static type of each supplied processor.
50
50
51
+ - ` extra `
52
+
53
+ Any extra C++ code to be included directly. This code is not automatically
54
+ wrapped in a namespace, so definitions from different container TOML files
55
+ will collide if they share the same name.
56
+
51
57
52
58
## Changes introduced with Typed Data Segment
53
59
- ` decl ` and ` func ` fields are ignored when using ` -ftyped-data-segment ` and the
You can’t perform that action at this time.
0 commit comments