From c2085bf795ca02e360341e8ab15c18c58ad6a6f8 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Mon, 8 Nov 2010 00:18:45 +0100
Subject: PCPP: Let '#error token' throw an exception with the message; Note:
 #warning needs to be quoted when having seperators

---
 src/java/com/jogamp/gluegen/pcpp/PCPP.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/java/com/jogamp/gluegen/pcpp/PCPP.java b/src/java/com/jogamp/gluegen/pcpp/PCPP.java
index db45e3e..f34a707 100644
--- a/src/java/com/jogamp/gluegen/pcpp/PCPP.java
+++ b/src/java/com/jogamp/gluegen/pcpp/PCPP.java
@@ -480,7 +480,7 @@ public class PCPP {
     private void handleError() throws IOException {
         String msg = nextWordOrString();
         if (enabled()) {
-            LOG.log(WARNING, "#error {0} at \"{1}\" line \"{2}\"", new Object[]{msg, filename(), lineNumber()});
+            throw new RuntimeException("#error "+msg+" at \""+filename()+"\" line "+lineNumber());
         }
     }
 
-- 
cgit v1.2.3