diff --git a/mccode_antlr/translators/c_header.py b/mccode_antlr/translators/c_header.py index ebe6cac..6cfce04 100644 --- a/mccode_antlr/translators/c_header.py +++ b/mccode_antlr/translators/c_header.py @@ -1,5 +1,6 @@ def header_pre_runtime(is_mcstas, source, runtime: dict, config: dict, typedefs: list, uservars: list): from datetime import datetime + from mccode_antlr import version def jump_line(instance, jump): return f'long Jump_{instance.name}_{jump}; /* the JUMP connection _ */' @@ -56,6 +57,7 @@ def jump_line(instance, jump): contents = f"""/* Automatically generated file. Do not edit. * Format: ANSI C source code * Creator: {runtime.get("fancy")} <{runtime.get("url")}> + * Generator: mccode-antlr {version()} * Instrument: {source.source} ({source.name}) * Date: {datetime.now()} * File: {config.get('output')}