Hint 0.1.0
Loading...
Searching...
No Matches
Macros
Memory Allocation

Macros

#define hint_malloc
 [[malloc]]
 
#define hint_alloc_align(__N)
 [[alloc_align(N)]]
 
#define hint_alloc_size(__N)
 [[alloc_size(x)]]
 

Detailed Description

See also
hint_allocating, hint_nonallocating, hint_noalloc

Macro Definition Documentation

◆ hint_alloc_align

#define hint_alloc_align (   __N)

[[alloc_align(N)]]

Indicates the 1-based argument number of a function that indicates the alignment of the returned result

See hint_malloc.

◆ hint_alloc_size

#define hint_alloc_size (   __N)

[[alloc_size(x)]]

Arg # (1-based) of the attribute that tells you the size of the result in bytes.

◆ hint_malloc

#define hint_malloc

[[malloc]]

Indicates the returned memory does not alias with any other pointer