summaryrefslogtreecommitdiffstats
path: root/tools/wixl/preprocessor.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wixl/preprocessor.vala')
-rw-r--r--tools/wixl/preprocessor.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/wixl/preprocessor.vala b/tools/wixl/preprocessor.vala
index feafb3b..c825e35 100644
--- a/tools/wixl/preprocessor.vala
+++ b/tools/wixl/preprocessor.vala
@@ -95,6 +95,11 @@ namespace Wixl {
} else
throw new Wixl.Error.FAILED ("invalid define");
break;
+ case "warning":
+ warning (eval (reader.const_value (), file));
+ break;
+ case "error":
+ error (eval (reader.const_value (), file));
default:
warning ("unhandled preprocessor instruction %s", reader.const_local_name ());
break;