ZT_CURRENT_LOCATION(3)
π ZT_CURRENT_LOCATION(3) π
okay so bestie, welcome to the LOCAL section of the manual, and today's main character is ZT_CURRENT_LOCATION β she gets you the current location in the source file. yes, like a little GPS for your C code. iconic behavior honestly. πΊοΈβ¨
β¨ NAME β¨
ZT_CURRENT_LOCATION β get the current location in the source file π
πΈ SYNOPSIS πΈ
#include <zt.h>
#define ZT_CURRENT_LOCATION() zt_location_at(__FILE__, __LINE__)
π¦ DESCRIPTION π¦
so like. ZT_CURRENT_LOCATION hands you a zt_location that describes the location of the source file that's invoking the macro. that's it, that's the whole vibe. it's literally the macro looking around and going "we are here rn" π
π RETURN VALUES π
a zt_location containing the current values of __FILE__ and __LINE__. no cap, that's exactly what you get β file and line, both current, both yours. π«Ά
π SEE ALSO π
go read those too bestie, they're the supporting cast and they ate. π₯
π HISTORY π
ZT_CURRENT_LOCATION first appeared in libzt 0.1. a true day-one queen. π
π AUTHORS π
Zygmunt Krynicki <me@zygoon.pl> β the genius behind this whole thing, we stan. π
ngl this page was living in libzt 0.3.1 and it's dated January 12, 2020 β so like, a lil vintage, but still serving. periodt. π β¨πΈπ¦π
π¦ where this page comes from
- debian bookworm: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- debian trixie: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu jammy: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu noble: libzt-doc 0.3.1-4build1 Β· LGPL-3.0-only
- ubuntu questing: libzt-doc 0.3.1-4build1
- ubuntu resolute: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- ubuntu stonking: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms