From 081541e968e68bd2d4e132f16d6e8ac5a39384f6 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sat, 15 Jul 2023 13:26:51 +0200 Subject: [PATCH] (#77) Preprocessor: ignore unknown pragmas --- Cesium.Preprocessor/CPreprocessor.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Cesium.Preprocessor/CPreprocessor.cs b/Cesium.Preprocessor/CPreprocessor.cs index f74e7b27..ed183ba3 100644 --- a/Cesium.Preprocessor/CPreprocessor.cs +++ b/Cesium.Preprocessor/CPreprocessor.cs @@ -1,4 +1,3 @@ -using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; using Cesium.Core; @@ -384,14 +383,9 @@ IEnumerable> ConsumeLineAll() if (identifier == "once") { IncludeContext.RegisterGuardedFileInclude(CompilationUnitPath); - return Array.Empty>(); - } - else - { - throw new WipException( - 77, - $"Preprocessor #pragma directive not supported: {keyword.Kind} {keyword.Text}."); } + + return Array.Empty>(); } default: throw new WipException(