Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This file is a part of VisualGDB [http://visualgdb.com/].
- It prevents IntelliSense errors related to GCC-specific constructs by hiding them via empty preprocessor definitions.
- NEVER INCLUDE THIS FILE IN YOUR ACTUAL SOURCE CODE.
- */
- #ifdef _MSC_VER
- typedef char *__builtin_va_list, *__gnuc_va_list;
- #define asm(...)
- #define __asm__(...)
- #define __asm
- #define __asm(...)
- #define __nonnull(...)
- #define __attribute__(...)
- #define __extension__
- #define __inline__ inline
- #define __signed__ signed
- #define __restrict__
- #define __gthrw(...)
- #define __const const
- #define __volatile volatile
- #define __THROW
- #define __cdecl
- #define __typeof decltype
- #define __builtin_va_start(...)
- #define __builtin_va_end(...)
- #define __builtin_vsnprintf(...)
- #define __null 0
- #define __builtin_va_arg(_v, _t) *(_t *)(void *)_v
- #define __builtin_bswap32(_t) (uint32_t)_t;
- #if !defined(__cplusplus) && _MSC_VER >= 1900
- #define inline __inline
- #endif
- #if defined(__cplusplus) && !defined(namespace)
- namespace std
- {
- typedef int nullptr_t;
- }
- #endif
- #define _UPPER 0x1 // Upper case letter
- #define _LOWER 0x2 // Lower case letter
- #define _DIGIT 0x4 // Digit[0-9]
- #define _SPACE 0x8 // Tab, carriage return, newline, vertical tab or form feed
- #define _PUNCT 0x10 // Punctuation character
- #define _CONTROL 0x20 // Control character
- #define _BLANK 0x40 // Space char
- #define _HEX 0x80 // Hexadecimal digit
- /* If you encounter IntelliSense errors caused by GCC-specific keywords, add them to this file similar to the lines above.*/
- #elif defined(__SYSPROGS_CODESENSE__)
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wreserved-id-macro"
- #pragma clang diagnostic ignored "-Wunused-macros"
- #pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
- #define __null 0
- #if defined(__x86_64__) || defined (_x86_) || defined(_X86_)
- #include "builtins_ia32.h"
- #endif
- #pragma clang diagnostic pop
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement