17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 18:37:29 +01:00

repair the include reordering

The previous pass dropped imports into the middle of HR_RETURN's
line continuations, breaking nvrenderer_d3d12.cpp, and its scan gave up
on the first line of any file with a BOM - which is why nvtexture.cpp
still had five includes sitting after its imports. Rewritten to skip
macro continuations, tolerate a BOM, and insert only immediately before
the first import.
This commit is contained in:
maj00r
2026-09-10 00:52:06 +02:00
parent 1455583ab6
commit cfd1c1f318
4 changed files with 21 additions and 20 deletions

View File

@@ -17,9 +17,10 @@
#include "nvrendererbackend.h"
#define HR_RETURN(op) \
import eu07.utilities.globals;
import eu07.utilities.logs;
#define HR_RETURN(op) \
hr = (HRESULT)(op); \
if (FAILED(hr)) { \
ErrorLog(fmt::format(#op " returned HRESULT={}", hr)); \