Skip to content

Commit bc70317

Browse files
committed
backward compat code
1 parent 4f8edb4 commit bc70317

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

HB/common/log.elpi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ env.add-const-noimplicits-failondup Name Bo Ty Opaque C :- std.do! [
7171
pred env.add-section-variable-noimplicits i:id, i:term, o:constant.
7272
env.add-section-variable-noimplicits Name Ty C :- std.do! [
7373
if (Name = "_") (ID is "fresh_name_" ^ {std.any->string {new_int}}) (ID = Name),
74+
% elpi:if version coq-elpi < 2.4.0
75+
@local! => coq.env.add-section-variable ID Ty C,
76+
% elpi:endif
77+
% elpi:if version coq-elpi >= 2.4.0
7478
@local! => coq.env.add-section-variable ID _ Ty C,
79+
% elpi:endif
7580
log.private.log-vernac (log.private.coq.vernac.variable ID Ty),
7681
@local! => arguments.set-implicit (const C) [[]],
7782
].

0 commit comments

Comments
 (0)