10 #include "../stdafx.h"
12 #include "../3rdparty/catch2/catch.hpp"
14 #include "../strings_func.h"
16 TEST_CASE(
"HaveDParamChanged")
21 std::vector<StringParameterData> backup;
void SetDParam(size_t n, uint64_t v)
Set a string parameter v at index n in the global string parameter array.
void CopyOutDParam(std::vector< StringParameterData > &backup, size_t num)
Copy num string parameters from the global string parameter array to the backup.
bool HaveDParamChanged(const std::span< const StringParameterData > backup)
Checks whether the global string parameters have changed compared to the given backup.
void SetDParamStr(size_t n, const char *str)
This function is used to "bind" a C string to a OpenTTD dparam slot.