From eca019cdea4017227e951d8a9eb30cb34fca4a07 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 7 Mar 2015 08:25:36 +0100 Subject: Bug 1134 - Pass ASTLocationTag to all types, used for GlueGenException Enhances semantic exception in code generation by adding the AST location of the type or function declaration. --- src/junit/com/jogamp/gluegen/test/junit/generation/test1.h | 2 +- src/junit/com/jogamp/gluegen/test/junit/internals/TestType.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/junit/com/jogamp/gluegen/test') diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h index 1b97437..8bc7208 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h @@ -365,7 +365,7 @@ typedef struct { const int32_t structPointerCustomLenVal; const TK_Dimension * structPointerOneElem; - const TK_Context ctx; + TK_Context ctx; const char modelNameArrayFixedLen[12]; /* 'Hello Array' len=11+1 */ const char * modelNamePointerCString; /* 'Hello CString' len=13+1 */ diff --git a/src/junit/com/jogamp/gluegen/test/junit/internals/TestType.java b/src/junit/com/jogamp/gluegen/test/junit/internals/TestType.java index 1b83d0c..84fc463 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/internals/TestType.java +++ b/src/junit/com/jogamp/gluegen/test/junit/internals/TestType.java @@ -43,10 +43,10 @@ public class TestType extends SingletonJunitCase { @Test public void test01Equals() { - final FloatType f1 = new FloatType("GLfloat", null, 0); - final FloatType f2 = new FloatType("float", null, 0); - final IntType i1 = new IntType("GLint", null, false, 0); - final IntType i2 = new IntType("int", null, false, 0); + final FloatType f1 = new FloatType("GLfloat", null, 0, null); + final FloatType f2 = new FloatType("float", null, 0, null); + final IntType i1 = new IntType("GLint", null, false, 0, null); + final IntType i2 = new IntType("int", null, false, 0, null); final int f1H = f1.hashCode(); final int f2H = f2.hashCode(); final int i1H = i1.hashCode(); -- cgit v1.2.3