diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/CodeGenUtils.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/CodeGenUtils.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/CodeGenUtils.java b/src/java/com/jogamp/gluegen/CodeGenUtils.java index 221256b..76116f1 100644 --- a/src/java/com/jogamp/gluegen/CodeGenUtils.java +++ b/src/java/com/jogamp/gluegen/CodeGenUtils.java @@ -56,8 +56,9 @@ public class CodeGenUtils { /** * @param generator the object that is emitting the autogenerated code. If * null, the generator will not be mentioned in the warning message. + * @param customLine maybe null */ - public static void emitAutogeneratedWarning(final PrintWriter w, final Object generator) { + public static void emitAutogeneratedWarning(final PrintWriter w, final Object generator, final String customLine) { w.print("/* !---- DO NOT EDIT: This file autogenerated "); if (generator != null) { w.print("by "); @@ -67,6 +68,11 @@ public class CodeGenUtils { w.print("on "); w.print((new Date()).toString()); w.println(" ----! */"); + if( null != customLine && customLine.length() > 0 ) { + w.print("/* !---- "); + w.print(customLine); + w.println(" ----! */"); + } w.println(); } |