From bfd58e2c515e8c360fda4bee3d0702c60d92ebf0 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 2 Dec 2025 18:24:54 +0100 Subject: preprocessor: add #ifndef...#endif include guard optimization --- common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index a1f1d21..20716d2 100644 --- a/common.h +++ b/common.h @@ -382,8 +382,8 @@ const char *getfilename(int id); struct memfile *getfile(int id); void addfileline(int id, uint off); void getfilepos(int *line, int *col, int id, uint off); -bool isoncefile(int id); -void markfileonce(int id); +bool isoncefile(int id, const char **guard); +void markfileonce(int id, const char *guard); void markfileseen(int id); bool isfileseen(int id); void closefile(int id); -- cgit v1.2.3