To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
package batteries
-
batteries
-
batteriesThread
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = backtrace_slot
val is_raise : t -> bool
is_raise slot
is true
when slot
refers to a raising point in the code, and false
when it comes from a simple function call.
- since 2.3.0 and OCaml 4.02
location slot
returns the location information of the slot, if available, and None
otherwise.
Some possible reasons for failing to return a location are as follow:
- the slot corresponds to a compiler-inserted raise
- the slot corresponds to a part of the program that has not been compiled with debug information (
-g
)
- since 2.3.0 and OCaml 4.02
val format : int -> t -> string option
format pos slot
returns the string representation of slot
as raw_backtrace_to_string
would format it, assuming it is the pos
-th element of the backtrace: the 0
-th element is pretty-printed differently than the others.
Whole-backtrace printing functions also skip some uninformative slots; in that case, format pos slot
returns None
.
- since 2.3.0 and OCaml 4.02
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>