Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
mock-free.h File Reference

(/usr/bin/git 2025-08-01, commit: e46fc091)

Header declaring a mock function for free(). More...

#include <stdbool.h>
Include dependency graph for mock-free.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void __wrap_free (void *ptr)
 
void __real_free (void *ptr)
 

Variables

bool crinitMockFreeEnabled
 

Detailed Description

Header declaring a mock function for free().

Function Documentation

◆ __real_free()

void __real_free ( void *  ptr)

◆ __wrap_free()

void __wrap_free ( void *  ptr)

Mock function for free().

If crinitMockFreeEnabled is true then it checks that the right parameters are given. If crinitMockFreeEnabled is false then the call is forwarded to the genuine free method.

Variable Documentation

◆ crinitMockFreeEnabled

bool crinitMockFreeEnabled
extern