diff options
Diffstat (limited to 'src/junit/com/jogamp/gluegen')
3 files changed, 61 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java index 2b570ff..1cbc6a6 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BaseClass.java @@ -94,6 +94,7 @@ public class BaseClass { String[] strings = null; int[] iarray = null; int iarray_offset = 0; + long l = 0; result = binding.arrayTestInt32(context, ib); result = binding.arrayTestInt32(context, iarray, iarray_offset); @@ -135,6 +136,17 @@ public class BaseClass { long cfg=0; cfg = binding.typeTestAnonSingle(cfg); pb = binding.typeTestAnonPointer(pb); + + i = binding.typeTestInt32T(i, i); + i = binding.typeTestUInt32T(i, i); + l = binding.typeTestInt64T(l, l); + l = binding.typeTestUInt64T(l, l); + + i = binding.typeTestWCharT(i, i); + l = binding.typeTestSizeT(l, l); + l = binding.typeTestPtrDiffT(l, l); + l = binding.typeTestIntPtrT(l, l); + l = binding.typeTestUIntPtrT(l, l); } /** diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c index d74cfc6..6cf42b5 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.c @@ -172,3 +172,41 @@ MYAPI MYAPIConfig * MYAPIENTRY typeTestAnonPointer(const MYAPIConfig * a) { return result; } +MYAPI int32_t MYAPIENTRY typeTestInt32T(const int32_t i1, int32_t i2) { + return i1 + i2; +} + +MYAPI uint32_t MYAPIENTRY typeTestUInt32T(const uint32_t ui1, uint32_t ui2) { + return ui1 + ui2; +} + +MYAPI int64_t MYAPIENTRY typeTestInt64T(const int64_t i1, int64_t i2) { + return i1 + i2; +} + +MYAPI uint64_t MYAPIENTRY typeTestUInt64T(const uint64_t ui1, uint64_t ui2) { + return ui1 + ui2; +} + + +MYAPI wchar_t MYAPIENTRY typeTestWCharT(const wchar_t c1, wchar_t c2) { + return c1 + c2; +} + +MYAPI size_t MYAPIENTRY typeTestSizeT(const size_t size1, size_t size2) { + return size1 + size2; +} + +MYAPI ptrdiff_t MYAPIENTRY typeTestPtrDiffT(const ptrdiff_t ptr1, ptrdiff_t ptr2) { + return ptr1 + ptr2; +} + +MYAPI intptr_t MYAPIENTRY typeTestIntPtrT(const intptr_t ptr1, intptr_t ptr2) { + return ptr1 + ptr2; +} + +MYAPI uintptr_t MYAPIENTRY typeTestUIntPtrT(const uintptr_t ptr1, uintptr_t ptr2) { + return ptr1 + ptr2; +} + + 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 bd526e6..6230c51 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/test1.h @@ -102,6 +102,17 @@ MYAPI MYAPIConfig * MYAPIENTRY typeTestAnonPointer(const MYAPIConfig * a); size_t unsigned_size_t_1; ptrdiff_t a_signed_pointer_t_1; +MYAPI int32_t MYAPIENTRY typeTestInt32T(const int32_t i1, int32_t i2); +MYAPI uint32_t MYAPIENTRY typeTestUInt32T(const uint32_t ui1, uint32_t ui2); +MYAPI int64_t MYAPIENTRY typeTestInt64T(const int64_t i1, int64_t i2); +MYAPI uint64_t MYAPIENTRY typeTestUInt64T(const uint64_t ui1, uint64_t ui2); + +MYAPI wchar_t MYAPIENTRY typeTestWCharT(const wchar_t c1, wchar_t c2); +MYAPI size_t MYAPIENTRY typeTestSizeT(const size_t size1, size_t size2); +MYAPI ptrdiff_t MYAPIENTRY typeTestPtrDiffT(const ptrdiff_t ptr1, ptrdiff_t ptr2); +MYAPI intptr_t MYAPIENTRY typeTestIntPtrT(const intptr_t ptr1, intptr_t ptr2); +MYAPI uintptr_t MYAPIENTRY typeTestUIntPtrT(const uintptr_t ptr1, uintptr_t ptr2); + #ifdef __GLUEGEN__ #warning "Hello GlueGen" #else |