32 lines
1.2 KiB
Standard ML
32 lines
1.2 KiB
Standard ML
(* Lightweight thread library for Objective Caml
|
|
* http://www.ocsigen.org/lwt
|
|
* Module Pa_lwt_options
|
|
* Copyright (C) 2010 Jérémie Dimino
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as
|
|
* published by the Free Software Foundation, with linking exceptions;
|
|
* either version 2.1 of the License, or (at your option) any later
|
|
* version. See COPYING file for details.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
* 02111-1307, USA.
|
|
*)
|
|
|
|
let debug = ref false
|
|
let strict_sequence = ref false
|
|
|
|
let () =
|
|
Camlp4.Options.add "-lwt-debug" (Arg.Set debug) "debugging mode"
|
|
|
|
let () =
|
|
Camlp4.Options.add "-lwt-strict-sequence" (Arg.Set strict_sequence)
|
|
"check left hand side of >> for non unit expressions "
|