zt_location(3)

zt_location3

Description of a specific line in a source file

Usage

#include <zt.h>

typedef struct zt_location { ... } zt_location;

Overview

zt_location contains a file name and a line number.

TypeEntryDescription
const char *filenameName of the source file, from __FILE__
intlinenoNumber of the line in said file, from __LINE__

Use ZT_CURRENT_LOCATION() macro to obtain a location describing the current file and line number.

Implementation notes

zt_location is used to report the location of failing test checks and assertions.

Releases

Unchanged in 3 releases since Debian 11 (Bullseye).

  1. 11–13

History

zt_location first appeared in libzt 0.1

Authors

Zygmunt Krynicki ⟨[email protected]⟩

From libzt-doc 0.3.1-4 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.