logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

zt_location — description of a specific line in a source file

Authors

       Zygmunt Krynicki <me@zygoon.pl>

libzt 0.3.1                                     January 12, 2020                                  zt_location(3)

Description

zt_location contains a file name and a line number.

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

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

History

zt_location first appeared in libzt 0.1

Implementation Notes

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

Name

       zt_location — description of a specific line in a source file

See Also

ZT_CURRENT_LOCATION(3), zt_location_at(3)

Synopsis

#include<zt.h>typedefstructzt_location{...}zt_location;

See Also