diff options
Diffstat (limited to 'CRT/eastl_user_config.hpp')
-rw-r--r-- | CRT/eastl_user_config.hpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/CRT/eastl_user_config.hpp b/CRT/eastl_user_config.hpp new file mode 100644 index 0000000..5a2f733 --- /dev/null +++ b/CRT/eastl_user_config.hpp @@ -0,0 +1,37 @@ +#ifndef EASTL_USER_CONFIG_HPP +#define EASTL_USER_CONFIG_HPP 1 + +#include <string.h> + +extern "C" { +static inline int snprintf_eastl_to_string_warning(char * out, unsigned long long int size) +{ + const char msg[] = "!!! DO NOT USE eastl::to_string !!!"; + const unsigned long long int msg_size = sizeof(msg); + + if (out == NULL || size < msg_size) + { + return sizeof(msg); + } + + memcpy(out, msg, msg_size); + return msg_size; +} + +static inline int Vsnprintf8(char * out, unsigned long long int size, const char *, char *) +{ + return snprintf_eastl_to_string_warning(out, size); +} + +static inline int Vsnprintf16(char * out, unsigned long long int size, const char *, char *) +{ + return snprintf_eastl_to_string_warning(out, size);; +} + +static inline int Vsnprintf32(char * out, unsigned long long int size, const char *, char *) +{ + return snprintf_eastl_to_string_warning(out, size); +} +}; + +#endif |