@@ -179,23 +179,11 @@ inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR so
179179 return strcpy_s (destination, destination_size, source);
180180}
181181
182- template <int count>
183- inline int xr_strcpy (char (&destination)[count], LPCSTR source)
184- {
185- return xr_strcpy (destination, count, source);
186- }
187-
188182inline int xr_strcat (LPSTR destination, size_t const buffer_size, LPCSTR source)
189183{
190184 return strcat_s (destination, buffer_size, source);
191185}
192186
193- template <int count>
194- inline int xr_strcat (char (&destination)[count], LPCSTR source)
195- {
196- return xr_strcat (destination, count, source);
197- }
198-
199187inline int __cdecl xr_sprintf (LPSTR destination, size_t const buffer_size, LPCSTR format_string, ...)
200188{
201189 va_list args;
@@ -255,6 +243,18 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string,
255243 return result;
256244}
257245#endif // #ifndef MASTER_GOLD
246+
247+ template <int count>
248+ inline int xr_strcpy (char (&destination)[count], LPCSTR source)
249+ {
250+ return xr_strcpy (destination, count, source);
251+ }
252+
253+ template <int count>
254+ inline int xr_strcat (char (&destination)[count], LPCSTR source)
255+ {
256+ return xr_strcat (destination, count, source);
257+ }
258258// #endif // #ifndef _EDITOR
259259
260260inline void MemFill32 (void * dst, u32 value, size_t dstSize)
0 commit comments