From 9be1305636daa633a7219e102b22a4ffcf277690 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 29 Jun 2023 02:06:00 +0200 Subject: GlueGen Struct [17]: Handle void pointers, i.e. `void*`, within a struct as `Opaque` configured pointer-types .. includes cross-ref'ed doc and unit test --- .../com/jogamp/gluegen/test/junit/generation/Test2FuncPtr.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/junit') diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/Test2FuncPtr.java b/src/junit/com/jogamp/gluegen/test/junit/generation/Test2FuncPtr.java index 3503fa3..cf32eb7 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/Test2FuncPtr.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/Test2FuncPtr.java @@ -96,6 +96,12 @@ public class Test2FuncPtr extends BaseClass { Assert.assertNotEquals(0, options.getCustomFuncB1()); Assert.assertNotEquals(0, options.getCustomFuncB2()); Assert.assertEquals(1, options.getApiVersion()); + Assert.assertEquals(1, T2_InitializeOptions.getReserved1ElemCount()); + BaseClass.assertAPTR(0x0000CAFFEEBEEFL, options.getReserved1()); + { + options.setReserved1(0xBEEFCAFFEE0DADL); + BaseClass.assertAPTR(0xBEEFCAFFEE0DADL, options.getReserved1()); + } Assert.assertEquals("Product Name", options.getProductName()); Assert.assertEquals("Product Version", options.getProductVersion()); Assert.assertEquals(0xa001, options.CustomFuncA1(0)); -- cgit v1.2.3