| 31 | #define TH_PATH(base, rel) th_path_join(base, rel) |
| 32 | |
| 33 | static inline const char *th_path_join(const char *base, const char *rel) { |
| 34 | static char buf[4][1024]; |
| 35 | static int idx = 0; |
| 36 | int i = idx; |
| 37 | idx = (idx + 1) & 3; |
| 38 | snprintf(buf[i], sizeof(buf[i]), "%s/%s", base, rel); |
| 39 | return buf[i]; |
| 40 | } |
| 41 | |
| 42 | /* ── File writing ─────────────────────────────────────────────── */ |
| 43 |
nothing calls this directly
no outgoing calls
no test coverage detected