diff options
author | sanine <sanine.not@pm.me> | 2021-12-21 21:03:05 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-12-21 21:03:05 -0600 |
commit | 7634dd65ac55a0fe4e7ed69cee7e3957f574a03e (patch) | |
tree | 3c080131ccc0837af240f609e3d6b07284881740 /lily-test.h | |
parent | 1e3ca08048542a29d04ecc2c1dbc0e5ba8421c27 (diff) |
implement RenatoUtsch's trimmed __FILE__ macro
Diffstat (limited to 'lily-test.h')
-rw-r--r-- | lily-test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lily-test.h b/lily-test.h index a1e63e5..a94f292 100644 --- a/lily-test.h +++ b/lily-test.h @@ -1,6 +1,12 @@ #ifndef LILY_TEST_H #define LILY_TEST_H +/* define SOURCE_PATH_SIZE to strip away the + leading parts of the full compilation path */ +#ifndef SOURCE_PATH_SIZE #define LILY_FILENAME __FILE__ +#else +#define LILY_FILENAME (__FILE__ + SOURCE_PATH_SIZE) +#endif #endif |