@@ -179,23 +179,11 @@ inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR so
179
179
return strcpy_s (destination, destination_size, source);
180
180
}
181
181
182
- template <int count>
183
- inline int xr_strcpy (char (&destination)[count], LPCSTR source)
184
- {
185
- return xr_strcpy (destination, count, source);
186
- }
187
-
188
182
inline int xr_strcat (LPSTR destination, size_t const buffer_size, LPCSTR source)
189
183
{
190
184
return strcat_s (destination, buffer_size, source);
191
185
}
192
186
193
- template <int count>
194
- inline int xr_strcat (char (&destination)[count], LPCSTR source)
195
- {
196
- return xr_strcat (destination, count, source);
197
- }
198
-
199
187
inline int __cdecl xr_sprintf (LPSTR destination, size_t const buffer_size, LPCSTR format_string, ...)
200
188
{
201
189
va_list args;
@@ -255,6 +243,18 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string,
255
243
return result;
256
244
}
257
245
#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
+ }
258
258
// #endif // #ifndef _EDITOR
259
259
260
260
inline void MemFill32 (void * dst, u32 value, size_t dstSize)
0 commit comments