Skip to content

Commit

Permalink
Add EPSILON constant generation from Mlang CLI option
Browse files Browse the repository at this point in the history
  • Loading branch information
denismerigoux committed Jan 24, 2024
1 parent 563aa44 commit b2340da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mlang/backend_compilers/dgfip_gen_files.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ let gen_conf_h fmt flags vars =
FLG_TRACE_IRDATA\n"; *)
if flags.flg_debug then Format.fprintf fmt "#define FLG_DEBUG\n";
Format.fprintf fmt "#define NB_DEBUG_C %d\n" flags.nb_debug_c;
Format.fprintf fmt "#define EPSILON %f\n" !Cli.comparison_error_margin;

let nb_saisie = count vars (Input None) in
let nb_calculee = count vars (Computed (Some Computed)) in
Expand Down

0 comments on commit b2340da

Please sign in to comment.