fix cmake
This commit is contained in:
parent
5d64af4841
commit
45a69c993f
3 changed files with 6 additions and 5 deletions
|
|
@ -2017,11 +2017,11 @@ static void define_struct(capnp_ctx_t *ctx, struct node *n, const char *extattr,
|
|||
&(ctx->SRC),
|
||||
"\nvoid encode_%s(struct capn_segment *cs,struct %s *d, %s *s) {\n",
|
||||
n->name.str, n->name.str, buf);
|
||||
str_addf(&(ctx->SRC), "%s\n", s.encoder);
|
||||
str_addf(&(ctx->SRC), "%s\n", s.encoder.str);
|
||||
str_addf(&(ctx->SRC), "}\n");
|
||||
str_addf(&(ctx->SRC), "\nvoid decode_%s(%s *d, struct %s *s) {\n",
|
||||
n->name.str, buf, n->name.str);
|
||||
str_addf(&(ctx->SRC), "%s\n", s.decoder);
|
||||
str_addf(&(ctx->SRC), "%s\n", s.decoder.str);
|
||||
str_addf(&(ctx->SRC), "}\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue