caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] line numbers in exceptions
@ 2003-10-08 18:04 Lex Stein
  2003-10-08 18:44 ` Basile Starynkevitch
  0 siblings, 1 reply; 2+ messages in thread
From: Lex Stein @ 2003-10-08 18:04 UTC (permalink / raw)
  To: caml-list


Hi, Is there a general strategy for getting the line number information
into exceptions. An exception call stack dump doesn't always work (for
example, with ocamlc -custom or ocamlopt). To figure out where my
exception is being raised, I'd like to paramaterize the exception by the
int line number. I don't want to enter this by hand because the exception
will change lines as I edit the code. Is there something like cpp's
__LINE__ and __FILE__ macros in OCaml? Or is the best way to just pump the
code through cpp before compilation?

Thanks,
Lex

--
Lex Stein                     http://www.eecs.harvard.edu/~stein/
stein@eecs.harvard.edu        cell: 617-233-0246

-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-08 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-08 18:04 [Caml-list] line numbers in exceptions Lex Stein
2003-10-08 18:44 ` Basile Starynkevitch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).