From 55b9d1a9c22ac2cfba9a876c9860aa3f15199606 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 18 Dec 2014 08:02:13 +0100 Subject: ProcAddressConfiguration: Allow setting default value for 'GetProcAddressTableExpr' --- .../com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/java') diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java index 7fc720c..0c5692b 100644 --- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java +++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java @@ -82,7 +82,7 @@ public class ProcAddressConfiguration extends JavaConfiguration { addForceProcAddressGen(funcName); } } else if (cmd.equalsIgnoreCase("GetProcAddressTableExpr")) { - getProcAddressTableExpr = readGetProcAddressTableExpr(tok, filename, lineNo); + setProcAddressTableExpr( readGetProcAddressTableExpr(tok, filename, lineNo) ); } else if (cmd.equalsIgnoreCase("ProcAddressNameExpr")) { readProcAddressNameExpr(tok, filename, lineNo); } else if (cmd.equalsIgnoreCase("LocalProcAddressCallingConvention")) { @@ -287,6 +287,9 @@ public class ProcAddressConfiguration extends JavaConfiguration { } return getProcAddressTableExpr; } + protected void setProcAddressTableExpr(final String s) { + getProcAddressTableExpr = s; + } public String convertToFunctionPointerName(final String funcName) { if (procAddressNameConverter == null) { -- cgit v1.2.3