mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
commit
82256fc34d
1 changed files with 12 additions and 1 deletions
13
src/bgfx_p.h
13
src/bgfx_p.h
|
@ -16,9 +16,20 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
|
||||||
|
// clang analyzer annotation
|
||||||
|
#if !defined(__has_feature)
|
||||||
|
# define __has_feature(_a) 0
|
||||||
|
#endif // !defined(__has_feature)
|
||||||
|
|
||||||
|
#if __has_feature(attribute_analyzer_noreturn)
|
||||||
|
# define CLANG_ANALYZER_NO_RETURN __attribute__( (analyzer_noreturn) )
|
||||||
|
#else
|
||||||
|
# define CLANG_ANALYZER_NO_RETURN
|
||||||
|
#endif // __has_feature(attribute_analyzer_noreturn)
|
||||||
|
|
||||||
namespace bgfx
|
namespace bgfx
|
||||||
{
|
{
|
||||||
void fatal(Fatal::Enum _code, const char* _format, ...);
|
void fatal(Fatal::Enum _code, const char* _format, ...) CLANG_ANALYZER_NO_RETURN;
|
||||||
void dbgPrintf(const char* _format, ...);
|
void dbgPrintf(const char* _format, ...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue