Skip to main content
Module

x/libclang/mod.ts>setAbortOnFatalError

Deno FFI bindings for libclang
Go to Latest
variable setAbortOnFatalError
import { setAbortOnFatalError } from "https://deno.land/x/libclang@1.0.0-beta.8/mod.ts";

When called with true, installs error handler that prints error message to stderr and calls abort(). This replaces the currently installed error handler (if any).

When called with false, removes the currently installed error handler (if any). If no error handler is intalled, the default strategy is to print error message to stderr and call exit(1).

WARNING: This API is not supported on Windows and will throw an error if called.

type

(value: boolean) => Deno.build.os extends "windows" ? never : void