feat(server): save economy hardening and CH5 continuation work

This commit is contained in:
shen
2026-10-22 06:22:23 -07:00
parent c979b53762
commit 5b7442ea37
142 changed files with 5850 additions and 1682 deletions
+2 -2
View File
@@ -49,14 +49,14 @@ int main() {
assert(!PortItemExtraRead("00",decoded));
hex[137]='g';assert(!PortItemExtraRead(hex.c_str(),decoded));
assert(!std::memcmp(&zero,&decoded,sizeof(zero)));
hex=std::string(138,'f');assert(PortItemExtraRead(hex.c_str(),decoded));
hex=std::string(138,'f');assert(!PortItemExtraRead(hex.c_str(),decoded));
assert(decoded.name[24]==0);
}
'''
with tempfile.TemporaryDirectory() as tmp:
cpp, exe = Path(tmp)/'extra.cpp', Path(tmp)/'extra'
cpp.write_text(source)
subprocess.run(['c++', '-std=c++17', '-I'+str(ROOT), str(cpp), '-o', str(exe)], check=True)
subprocess.run(['c++', '-std=c++17', '-Werror=implicit-int-conversion', '-I'+str(ROOT), str(cpp), '-o', str(exe)], check=True)
subprocess.run([str(exe)], check=True)