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. πŸ’…βœ¨πŸŒΈπŸ¦‹πŸ’–