File: debug.ml

package info (click to toggle)
xen-api-libs 0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,940 kB
  • sloc: ml: 13,925; sh: 2,930; ansic: 1,699; makefile: 1,240; python: 83
file content (3 lines) | stat: -rw-r--r-- 193 bytes parent folder | download
1
2
3

let debug_hook : (('b, unit, string, unit) format4 -> 'b) option ref = ref None
let debug string = match !debug_hook with Some x -> x "%s" string | None -> Printf.fprintf stderr "%s\n" string