[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Lex Stein <stein@e...> |
| Subject: | [Caml-list] line numbers in exceptions |
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