Skip to content

Machinery to uniquely generate __LOC__, a 4-byte int encoding of __FILE__, __LINE__ & __FUNC__. 'C' interfaces are provided to generate the encoding at compile-time and to decode the encoded value to its constituent file/func-name and line-number. Encoded line-of-code can be used for diagnostics, troubleshooting, resource tracking and other usages.

License

Notifications You must be signed in to change notification settings

Soft-Where-Inc/LineOfCode

Error
Looks like something went wrong!

About

Machinery to uniquely generate __LOC__, a 4-byte int encoding of __FILE__, __LINE__ & __FUNC__. 'C' interfaces are provided to generate the encoding at compile-time and to decode the encoded value to its constituent file/func-name and line-number. Encoded line-of-code can be used for diagnostics, troubleshooting, resource tracking and other usages.

Topics

Resources

License

Stars

Watchers

Forks