diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-04-26 12:35:07 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-04-28 16:24:48 -0500 |
commit | e0e8ce1fc00dad7cbbcd4a1f4fcedea4b760e6be (patch) | |
tree | c6bd29831b3b146f4c67f36c101b9f150331a485 /gles3_builders.py | |
parent | 6118592c6d88350d01f74faff6fd49754f84a7d0 (diff) | |
download | redot-engine-e0e8ce1fc00dad7cbbcd4a1f4fcedea4b760e6be.tar.gz |
SCons: Colorize warnings/errors during generation
Diffstat (limited to 'gles3_builders.py')
-rw-r--r-- | gles3_builders.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gles3_builders.py b/gles3_builders.py index cf7c74f32d..78882f97fd 100644 --- a/gles3_builders.py +++ b/gles3_builders.py @@ -1,7 +1,7 @@ """Functions used to generate source files during build time""" import os.path - +from methods import print_error from typing import Optional @@ -94,11 +94,11 @@ def include_file_in_gles3_header(filename: str, header_data: GLES3HeaderStruct, if not included_file in header_data.vertex_included_files and header_data.reading == "vertex": header_data.vertex_included_files += [included_file] if include_file_in_gles3_header(included_file, header_data, depth + 1) is None: - print("Error in file '" + filename + "': #include " + includeline + "could not be found!") + print_error(f'In file "{filename}": #include "{includeline}" could not be found!"') elif not included_file in header_data.fragment_included_files and header_data.reading == "fragment": header_data.fragment_included_files += [included_file] if include_file_in_gles3_header(included_file, header_data, depth + 1) is None: - print("Error in file '" + filename + "': #include " + includeline + "could not be found!") + print_error(f'In file "{filename}": #include "{includeline}" could not be found!"') line = fs.readline() |