193 lines
2.5 KiB
HTML
193 lines
2.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Printexc.Slot</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Printexc.Slot</H1>
|
|
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Printexc.Slot - no description
|
|
<A NAME="lbAC"> </A>
|
|
<H2>Module</H2>
|
|
|
|
Module Printexc.Slot
|
|
<A NAME="lbAD"> </A>
|
|
<H2>Documentation</H2>
|
|
|
|
<P>
|
|
Module
|
|
<B>Slot</B>
|
|
|
|
<BR> :
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
<B>Since</B>
|
|
|
|
4.02.0
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type t </I>
|
|
|
|
=
|
|
<B>Printexc.backtrace_slot</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val is_raise </I>
|
|
|
|
:
|
|
<B>t -> bool</B>
|
|
|
|
<P>
|
|
<P>
|
|
<B>is_raise slot</B>
|
|
|
|
is
|
|
<B>true</B>
|
|
|
|
when
|
|
<B>slot</B>
|
|
|
|
refers to a raising
|
|
point in the code, and
|
|
<B>false</B>
|
|
|
|
when it comes from a simple
|
|
function call.
|
|
<P>
|
|
<P>
|
|
<B>Since</B>
|
|
|
|
4.02
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val is_inline </I>
|
|
|
|
:
|
|
<B>t -> bool</B>
|
|
|
|
<P>
|
|
<P>
|
|
<B>is_inline slot</B>
|
|
|
|
is
|
|
<B>true</B>
|
|
|
|
when
|
|
<B>slot</B>
|
|
|
|
refers to a call
|
|
that got inlined by the compiler, and
|
|
<B>false</B>
|
|
|
|
when it comes from
|
|
any other context.
|
|
<P>
|
|
<P>
|
|
<B>Since</B>
|
|
|
|
4.04.0
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val location </I>
|
|
|
|
:
|
|
<B>t -> Printexc.location option</B>
|
|
|
|
<P>
|
|
<P>
|
|
<B>location slot</B>
|
|
|
|
returns the location information of the slot,
|
|
if available, and
|
|
<B>None</B>
|
|
|
|
otherwise.
|
|
<P>
|
|
Some possible reasons for failing to return a location are as follow:
|
|
<P>
|
|
-the slot corresponds to a compiler-inserted raise
|
|
<P>
|
|
-the slot corresponds to a part of the program that has not been
|
|
compiled with debug information (
|
|
<B>-g</B>
|
|
|
|
)
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<B>Since</B>
|
|
|
|
4.02
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val format </I>
|
|
|
|
:
|
|
<B>int -> t -> string option</B>
|
|
|
|
<P>
|
|
<P>
|
|
<B>format pos slot</B>
|
|
|
|
returns the string representation of
|
|
<B>slot</B>
|
|
|
|
as
|
|
<B>raw_backtrace_to_string</B>
|
|
|
|
would format it, assuming it is the
|
|
<B>pos</B>
|
|
|
|
-th element of the backtrace: the
|
|
<B>0</B>
|
|
|
|
-th element is
|
|
pretty-printed differently than the others.
|
|
<P>
|
|
Whole-backtrace printing functions also skip some uninformative
|
|
slots; in that case,
|
|
<B>format pos slot</B>
|
|
|
|
returns
|
|
<B>None</B>
|
|
|
|
.
|
|
<P>
|
|
<P>
|
|
<B>Since</B>
|
|
|
|
4.02
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">Module</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:52 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|