mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
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:
parent
fa0c29f959
commit
12c7b156c5
2 changed files with 6 additions and 0 deletions
|
@ -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(...)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue