---
name: "ZT_CURRENT_LOCATION"
section: "3"
platform: "linux"
package: "libzt-doc"
version: "0.3.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ZT_CURRENT_LOCATION"
---

# ZT\_CURRENT\_LOCATION(3)

get the current location in the source file

## 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

**ZT\_CURRENT\_LOCATION** provides **zt\_location** describing the location of the source file invoking the macro.

## RETURN VALUES

A **zt\_location** containing the current values of **\_\_FILE\_\_** and **\_\_LINE**.

## SEE ALSO

[zt\_location\_at(3)](/zt_location_at/3.md), [zt\_location(3)](/zt_location/3.md)

## HISTORY

**ZT\_CURRENT\_LOCATION** first appeared in libzt 0.1

## AUTHORS

Zygmunt Krynicki ⟨*me@zygoon.pl*⟩
