Skip to content

Commit 2081cb6

Browse files
author
Nicusor Serban
committed
Merge branch 'master' into release/v2.32.0
2 parents d315f09 + c24225f commit 2081cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stan_math_backend/Lower_program.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ let lower_model_public p =
737737
@ gen_overloads p
738738

739739
let model_public_basics name =
740+
let version_string = "stanc_version = %%NAME%%3 %%VERSION%%" in
740741
[ FunDef
741742
(make_fun_defn ~inline:true ~return_type:Types.string ~name:"model_name"
742743
~cv_qualifiers:[Const; Final]
@@ -750,8 +751,7 @@ let model_public_basics name =
750751
[ Return
751752
(Some
752753
(Exprs.std_vector_init_expr Types.string
753-
[ Exprs.literal_string
754-
"stanc_version = %%NAME%%3 %%VERSION%%"
754+
[ Exprs.literal_string version_string
755755
; Exprs.literal_string
756756
("stancflags = " ^ !stanc_args_to_print) ] ) ) ]
757757
~cv_qualifiers:[Const; NoExcept] () ) ]

0 commit comments

Comments
 (0)