3 ms·
Various languages have ways of automatically including file paths and line numbers without the caller having to include them every time C# has CallerFilePathAt
by MarkSweep 4y ago
Various languages have ways of automatically including file paths and line numbers without the caller having to include them every time
C# has CallerFilePathAttribute https://docs.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.callerfilepathattribute https://docs.microsoft.com/en-us/dotnet/api/system.runtime.c...
C has the __FILE__, __func__, and __LINE__ pre-processor macros.