equal
deleted
inserted
replaced
145 #endif // CHECK_UNHANDLED_OOPS |
145 #endif // CHECK_UNHANDLED_OOPS |
146 #if _MSC_VER >= 1400 |
146 #if _MSC_VER >= 1400 |
147 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE |
147 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE |
148 #endif |
148 #endif |
149 |
149 |
150 inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) { |
|
151 // If number of characters written == count, Windows doesn't write a |
|
152 // terminating NULL, so we do it ourselves. |
|
153 int ret = _vsnprintf(buf, count, fmt, argptr); |
|
154 if (count > 0) buf[count-1] = '\0'; |
|
155 return ret; |
|
156 } |
|
157 |
|
158 // Portability macros |
150 // Portability macros |
159 #define PRAGMA_INTERFACE |
151 #define PRAGMA_INTERFACE |
160 #define PRAGMA_IMPLEMENTATION |
152 #define PRAGMA_IMPLEMENTATION |
161 #define PRAGMA_IMPLEMENTATION_(arg) |
153 #define PRAGMA_IMPLEMENTATION_(arg) |
162 #define VALUE_OBJ_CLASS_SPEC : public _ValueObj |
154 #define VALUE_OBJ_CLASS_SPEC : public _ValueObj |