DOKK / manpages / debian 12 / libzt-doc / zt_location.3.en
zt_location(3) Library Functions Manual (prm) zt_location(3)

zt_locationdescription of a specific line in a source file

#include <zt.h>

typedef struct zt_location { ... } zt_location;

zt_location contains a file name and a line number.

const char * filename Name of the source file, from __FILE__
int lineno Number of the line in said file, from __LINE__

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

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

ZT_CURRENT_LOCATION(3), zt_location_at(3)

zt_location first appeared in libzt 0.1

Zygmunt Krynicki <me@zygoon.pl>

January 12, 2020 libzt 0.3.1