summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-11 15:47:15 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-11 15:47:15 +0100
commit22dd8fdf21f8ef2649ec696c52d0ca0997bb9883 (patch)
treef71501e0db400134edc81ef50aa644303bc0e7b2 /tools
parent29660983a70f57ba80b1765a4795bd7005a52cc0 (diff)
downloadmsitools-22dd8fdf21f8ef2649ec696c52d0ca0997bb9883.tar.gz
msitools-22dd8fdf21f8ef2649ec696c52d0ca0997bb9883.tar.xz
msitools-22dd8fdf21f8ef2649ec696c52d0ca0997bb9883.zip
wixl: add preprocessor warning and error
Diffstat (limited to 'tools')
-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;