@@ -156,23 +156,11 @@ inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR so
156
156
return strcpy_s (destination, destination_size, source);
157
157
}
158
158
159
- template <int count>
160
- inline int xr_strcpy (char (&destination)[count], LPCSTR source)
161
- {
162
- return xr_strcpy (destination, count, source);
163
- }
164
-
165
159
inline int xr_strcat (LPSTR destination, size_t const buffer_size, LPCSTR source)
166
160
{
167
161
return strcat_s (destination, buffer_size, source);
168
162
}
169
163
170
- template <int count>
171
- inline int xr_strcat (char (&destination)[count], LPCSTR source)
172
- {
173
- return xr_strcat (destination, count, source);
174
- }
175
-
176
164
inline int __cdecl xr_sprintf (LPSTR destination, size_t const buffer_size, LPCSTR format_string, ...)
177
165
{
178
166
va_list args;
@@ -232,6 +220,18 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string,
232
220
return result;
233
221
}
234
222
#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
+ }
235
235
// #endif // #ifndef _EDITOR
236
236
237
237
inline void MemFill32 (void * dst, u32 value, size_t dstSize)
0 commit comments