Fix an issue where a (cached) shader program could be used from multiple
[movit] / defs.h
1 #ifndef _MOVIT_DEFS_H
2 #define _MOVIT_DEFS_H
3
4 // Utility macros that are useful from other header files.
5
6 #ifdef __GNUC__
7 #define MUST_CHECK_RESULT __attribute__((warn_unused_result))
8 #define DOES_NOT_RETURN __attribute__((noreturn))
9 #else
10 #define MUST_CHECK_RESULT 
11 #define DOES_NOT_RETURN
12 #endif
13
14 #endif  // !defined(_MOVIT_DEFS_H)