@@ -156,23 +156,11 @@ inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR so
156156 return strcpy_s (destination, destination_size, source);
157157}
158158
159- template <int count>
160- inline int xr_strcpy (char (&destination)[count], LPCSTR source)
161- {
162- return xr_strcpy (destination, count, source);
163- }
164-
165159inline int xr_strcat (LPSTR destination, size_t const buffer_size, LPCSTR source)
166160{
167161 return strcat_s (destination, buffer_size, source);
168162}
169163
170- template <int count>
171- inline int xr_strcat (char (&destination)[count], LPCSTR source)
172- {
173- return xr_strcat (destination, count, source);
174- }
175-
176164inline int __cdecl xr_sprintf (LPSTR destination, size_t const buffer_size, LPCSTR format_string, ...)
177165{
178166 va_list args;
@@ -232,6 +220,18 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string,
232220 return result;
233221}
234222#endif // #ifndef MASTER_GOLD
223+
224+ template <int count>
225+ inline int xr_strcpy (char (&destination)[count], LPCSTR source)
226+ {
227+ return xr_strcpy (destination, count, source);
228+ }
229+
230+ template <int count>
231+ inline int xr_strcat (char (&destination)[count], LPCSTR source)
232+ {
233+ return xr_strcat (destination, count, source);
234+ }
235235// #endif // #ifndef _EDITOR
236236
237237inline void MemFill32 (void * dst, u32 value, size_t dstSize)
0 commit comments