From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA21080; Thu, 13 Jun 2002 08:58:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA21055 for ; Thu, 13 Jun 2002 08:58:41 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g5D6we903053 for ; Thu, 13 Jun 2002 08:58:40 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id IAA06615 for caml-list@inria.fr; Thu, 13 Jun 2002 08:58:40 +0200 Date: Thu, 13 Jun 2002 08:58:40 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] debugging hints and camlp4 macros Message-ID: <20020613085840.A6561@verdot.inria.fr> References: <15621.48920.186835.87150@is002254.saclay.cea.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15621.48920.186835.87150@is002254.saclay.cea.fr>; from basile.starynkevitch@cea.fr on Tue, Jun 11, 2002 at 11:12:56AM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Tue, Jun 11, 2002 at 11:12:56AM +0200, Basile STARYNKEVITCH wrote: > Does anyone have any hints or Camlp4 code for that. In particular, I > am missing the equivalent of (in C, using Gnu GCC preprocessor > extensions) > #define dbgprintf(Fmt, Args...) printf("@@ " __FILE__ ":%d: " Fmt "\n", __LINE__, ##Args) > [...] I started something like that some time ago, to provide a general extension allowing to create one's macros (pa_macros.ml), but not terminated. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners