Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/core/macros.h
| Context not available. | |||||
| #include <iostream> | #include <iostream> | ||||
| namespace draco { | namespace draco { | ||||
| #ifndef DISALLOW_COPY_AND_ASSIGN | |||||
| #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ | #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ | ||||
| TypeName(const TypeName &) = delete; \ | TypeName(const TypeName &) = delete; \ | ||||
| void operator=(const TypeName &) = delete; | void operator=(const TypeName &) = delete; | ||||
| #endif | |||||
| #ifndef FALLTHROUGH_INTENDED | |||||
| #if defined(__clang__) && defined(__has_warning) | |||||
| #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") | |||||
| #define FALLTHROUGH_INTENDED [[clang::fallthrough]] | |||||
| #endif | |||||
| #elif defined(__GNUC__) && __GNUC__ >= 7 | |||||
| #define FALLTHROUGH_INTENDED [[gnu::fallthrough]] | |||||
| #endif | |||||
| // If FALLTHROUGH_INTENDED is still not defined, define it. | |||||
| #ifndef FALLTHROUGH_INTENDED | #ifndef FALLTHROUGH_INTENDED | ||||
| #define FALLTHROUGH_INTENDED void(0); | #define FALLTHROUGH_INTENDED \ | ||||
| do { \ | |||||
| } while (0) | |||||
| #endif | |||||
| #endif | #endif | ||||
| #ifndef LOG | #ifndef LOG | ||||
| Context not available. | |||||