zt_location_at3
Pack file name and line number into a location value
Usage
#include <zt.h>
zt_location
zt_location_at(const char* fname, int lineno);
Overview
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()
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.
Return values
A zt_location containing the given file name and line number.
Releases
Unchanged in 3 releases since Debian 11 (Bullseye).