diff options
author | grm <grm@eyesin.space> | 2024-06-04 15:50:06 +0300 |
---|---|---|
committer | grm <grm@eyesin.space> | 2024-06-04 15:50:06 +0300 |
commit | d90096048f4d96770c738addf9a22b2dd7fbd903 (patch) | |
tree | 18397e00e96efb08853d676f8015ba95b1182db2 /src/b.h | |
parent | e5e6be1bd6edc2c03c97a5622ad0eeea81f8d6c6 (diff) | |
download | cgame-d90096048f4d96770c738addf9a22b2dd7fbd903.tar.gz cgame-d90096048f4d96770c738addf9a22b2dd7fbd903.tar.bz2 cgame-d90096048f4d96770c738addf9a22b2dd7fbd903.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; |