Reference

zt_location(3)

description of a specific line in a source file

NAME

zt_location – description of a specific line in a source file

SYNOPSIS

#include <zt.h>

typedef struct zt_location { ... } zt_location;

DESCRIPTION

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.

SEE ALSO

ZT_CURRENT_LOCATION(3), zt_location_at(3)

HISTORY

zt_location first appeared in libzt 0.1

AUTHORS

Zygmunt Krynicki ⟨[email protected]⟩