diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2024-06-04 15:50:06 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2024-06-04 15:50:06 +0300 |
commit | e3c514f1c279c9955cac6b1fa9d0ede6ecbc310d (patch) | |
tree | 18397e00e96efb08853d676f8015ba95b1182db2 /src/b.h | |
parent | 64617ea2c46d13cd2f72df72fcd426d2fc561bff (diff) | |
download | cgame-e3c514f1c279c9955cac6b1fa9d0ede6ecbc310d.tar.gz cgame-e3c514f1c279c9955cac6b1fa9d0ede6ecbc310d.tar.bz2 cgame-e3c514f1c279c9955cac6b1fa9d0ede6ecbc310d.zip |
vks work and clang-format
Diffstat (limited to 'src/b.h')
-rw-r--r-- | src/b.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -49,6 +49,7 @@ typedef enum { B_INFO, + B_CHANGE, B_WARNING, B_ERROR, } B_Log_Level; @@ -485,6 +486,9 @@ void b_log(B_Log_Level level, const char *fmt, ...) case B_INFO: fprintf(stderr, "[INFO] "); break; + case B_CHANGE: + fprintf(stderr, "[CHANGE] "); + break; case B_WARNING: fprintf(stderr, "[WARNING] "); break; @@ -723,7 +727,10 @@ int b_needs_rebuild(const char *output_path, const char **input_paths, size_t in } int input_path_time = statbuf.st_mtime; // NOTE: if even a single input_path is fresher than output_path that's 100% rebuild - if (input_path_time > output_path_time) return 1; + if (input_path_time > output_path_time) { + b_log(B_CHANGE, "%s", input_path); + return 1; + } } return 0; |