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_at — pack file name and line number into a location value

Authors

       Zygmunt Krynicki <me@zygoon.pl>

libzt 0.3.1                                     January 12, 2020                               zt_location_at(3)

Description

zt_location_at packs both arguments into a zt_location.  It exists to facilitate packing a zt_claim value
       without  any  temporary  variables. It is useful for support of C compilers that do not support structure
       literals.

       For convenient definition of the current file and line number use the macro ZT_CURRENT_LOCATION()

History

zt_location_at first appeared in libzt 0.1

Implementation Notes

zt_location_at is only provided as a static inline function.

       The fname argument is retained by the value and is typically a constant string literal  produced  by  the
       preprocessor.

Name

       zt_location_at — pack file name and line number into a location value

Return Values

       A zt_location containing the given file name and line number.

See Also

ZT_CURRENT_LOCATION(3), zt_location(3)

Synopsis

#include<zt.h>zt_locationzt_location_at(constchar*fname, intlineno);

See Also