diff options
| author | Pierre-Marie Pédrot | 2017-05-16 18:14:40 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-05-19 15:17:31 +0200 |
| commit | 6a4d15c6ce3994509085ef575cc2f242925af15a (patch) | |
| tree | 6b6a1ad50b3562c0cf21f98ec7ea934d1bbc95a9 /Control.v | |
| parent | df1c50b36f4927fdf64a3ed99a4a077f5175ac5e (diff) | |
Extending the Coq API in Ltac2.
Diffstat (limited to 'Control.v')
| -rw-r--r-- | Control.v | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -28,6 +28,11 @@ Ltac2 @ external focus : int -> int -> (unit -> 'a) -> 'a := "ltac2" "focus". Ltac2 @ external shelve : unit -> unit := "ltac2" "shelve". Ltac2 @ external shelve_unifiable : unit -> unit := "ltac2" "shelve_unifiable". +Ltac2 @ external new_goal : evar -> unit := "ltac2" "new_goal". +(** Adds the given evar to the list of goals as the last one. If it is + already defined in the current state, don't do anything. Panics if the + evar is not in the current state. *) + (** Goal inspection *) Ltac2 @ external goal : unit -> constr := "ltac2" "goal". |
