From b678465c11517a5342b1ec5aa4fe21570f13a3ed Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 29 Aug 2025 21:25:03 +0900 Subject: feat: add utility function to dump any internal object as JSON --- src/io.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/io.h') diff --git a/src/io.h b/src/io.h index 8a96b59..89394bf 100644 --- a/src/io.h +++ b/src/io.h @@ -1,6 +1,7 @@ #ifndef DUCC_IO_H #define DUCC_IO_H +#include "json.h" #include "std.h" struct SourceLocation { @@ -9,6 +10,8 @@ struct SourceLocation { }; typedef struct SourceLocation SourceLocation; +void sourcelocation_build_json(JsonBuilder* builder, SourceLocation* loc); + struct InFile { const char* buf; int pos; -- cgit v1.2.3-70-g09d2