package goblint

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file gobRef.ml

1
2
3
4
5
(** call [f], with [r] temporarily set to [x] *)
let wrap r x =
  let x0 = !r in
  r := x;
  Fun.protect ~finally:(fun () -> r := x0)
OCaml

Innovation. Community. Security.