From b08c61935daa0191f4ec59c6998bc56dae18e54d Mon Sep 17 00:00:00 2001 From: Mathieu Féry Date: Fri, 4 Aug 2023 10:50:10 +0200 Subject: feat(callbackGenerator): Prevent generation of CallBack interface if setter related isn't present --- src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java') diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java index b812416..6fb8a10 100644 --- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java +++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressEmitter.java @@ -78,13 +78,14 @@ public class ProcAddressEmitter extends JavaEmitter { protected String tableClassName; @Override - public void beginFunctions(final TypeDictionary typedefDictionary, final TypeDictionary structDictionary, final Map canonMap) throws Exception { + public void beginFunctions(final TypeDictionary typedefDictionary, final TypeDictionary structDictionary, + final Map canonMap, final List cFunctions) throws Exception { this.typedefDictionary = typedefDictionary; if (getProcAddressConfig().emitProcAddressTable()) { beginProcAddressTable(); } - super.beginFunctions(typedefDictionary, structDictionary, canonMap); + super.beginFunctions(typedefDictionary, structDictionary, canonMap, cFunctions); } @Override -- cgit v1.2.3