Compiler.h: add gcc_returns_nonnull, gcc_returns_twice
This commit is contained in:
@@ -97,7 +97,7 @@ UnsafeCopyString(wchar_t *dest, const wchar_t *src) noexcept
|
||||
wcscpy(dest, src);
|
||||
}
|
||||
|
||||
gcc_nonnull_all
|
||||
gcc_returns_nonnull gcc_nonnull_all
|
||||
static inline wchar_t *
|
||||
UnsafeCopyStringP(wchar_t *dest, const wchar_t *src) noexcept
|
||||
{
|
||||
@@ -155,7 +155,7 @@ StringIsEqualIgnoreCase(const wchar_t *a, const wchar_t *b,
|
||||
|
||||
#ifndef __BIONIC__
|
||||
|
||||
gcc_malloc gcc_nonnull_all
|
||||
gcc_malloc gcc_returns_nonnull gcc_nonnull_all
|
||||
static inline wchar_t *
|
||||
DuplicateString(const wchar_t *p)
|
||||
{
|
||||
|
Reference in New Issue
Block a user