nostrdb: add supporting files for the bolt11 parser

A lot of this was pulled from core-lightning. Not sure what is actually
needed or not.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2023-12-22 16:48:50 -08:00
committed by Daniel D’Aquino
parent 389c2c9695
commit cc75a8450a
46 changed files with 7665 additions and 438 deletions

15
nostrdb/bolt11/debug.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef PROTOVERSE_DEBUG_H
#define PROTOVERSE_DEBUG_H
#include <stdio.h>
#define unusual(...) fprintf(stderr, "UNUSUAL: " __VA_ARGS__)
#ifdef DEBUG
#define debug(...) printf(__VA_ARGS__)
#else
#define debug(...)
#endif
#endif /* PROTOVERSE_DEBUG_H */