tools/generate_wire.py: allow generated C files to have includes added.

We previously ignored --include= for these, but onion is about to start
needing bolt12.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-03-23 10:01:14 +10:30
parent fa0c29f959
commit 12c7b156c5
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,9 @@
#include <ccan/tal/str/str.h>
#include <common/utils.h>
#include <stdio.h>
% for i in includes:
${i}
% endfor
#ifndef SUPERVERBOSE
#define SUPERVERBOSE(...)

View file

@ -8,6 +8,9 @@
#include <common/utils.h>
#include <inttypes.h>
#include <stdio.h>
% for i in includes:
${i}
% endfor
% if enum_sets:
void print${options.enum_name}_message(const u8 *msg)