Run-time Helpers
PBHeapFree
C-only function: Free memory allocated with PBHeapAllocate or PBHeapAllocateZeroed.
Syntax (C)
void PBHeapFree(void *_Nullable pointer)
PBHeapAllocate
C-only function: Allocate uninitialized memory on the heap.
Syntax (C)
void *_Nullable PBHeapAllocate(size_t bytes)
See Also
PBHeapAllocateZeroed
C-only function: Allocate zeroed memory on the heap.
Syntax (C)
void *_Nullable PBHeapAllocateZeroed(size_t bytes)
See Also
PBHeapAllocateWithTag
C-only function: Allocate uninitialized memory on the heap.
Syntax (C)
void *_Nullable PBHeapAllocateWithTag(size_t bytes, const char *_Nonnull cTag)
See Also
PBHeapAllocateZeroedWithTag
C-only function: Allocate zeroed memory on the heap.
Syntax (C)
void *_Nullable PBHeapAllocateZeroedWithTag(size_t bytes, const char *_Nonnull cTag)
See Also
PBHeapReallocate
C-only function: Grow or shrink a memory allocation.
Syntax (C)
void *_Nullable PBHeapReallocate(void *_Nullable pointer, size_t bytes)
PBMemoryCompare
C-only function: Wrapper for memcmp.
Syntax (C)
int PBMemoryCompare(const void *_Nonnull pointerA, const void *_Nonnull pointerB, size_t byteCount)
PBCStringLength
C-only function: Wrapper for strlen.
Syntax (C)
size_t PBCStringLength(const char *_Nonnull string)
PBAssertionFailure
C-only function: Used by the PBAssert macro.
Syntax (C)
void PBAssertionFailure(const char *_Nonnull file, int line, const char *_Nonnull expression) __attribute__((noreturn))
PBAssertionFailureWithHint
C-only function: Used by the PBAssertWithHint macro.
Syntax (C)
void PBAssertionFailureWithHint(const char *_Nonnull file, int line, const char *_Nonnull expression, const char *_Nullable hint) __attribute__((noreturn))
PBLogError
C-only function: Log an error message for the process.
Syntax (C)
void PBLogError(const char *_Nonnull cFormat, ...) __attribute__((format(printf, 1, 2)))
PBLogInfo
C-only function: Log an information message for the process.
Syntax (C)
void PBLogInfo(const char *_Nonnull cFormat, ...) __attribute__((format(printf, 1, 2)))
PBLogBackTrace
C-only function: Log the names of the functions on the call stack, if possible.
Syntax (C)
void PBLogBackTrace()