C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Handle_wrap Union Reference

#include <private_types.h>

Collaboration diagram for CCC_Handle_wrap:

Detailed Description

A helper type so that we may return handles by compound literal reference to other functions for API consistency. The user interacts with this type in the API as follows but we typedef it so they don't care.

CCC_Handle *handle = &(CCC_Handle){function_returns_wrapper(arguments).private};
Definition: private_types.h:80

We can then wrap that returned compound literal reference in a macro. Union is used as the wrapping type as a reminder that this type should serve no other purpose and add no additional fields.

Data Fields

struct CCC_Handle private
 

Field Documentation

◆ private

struct CCC_Handle CCC_Handle_wrap::private

Helper to return the compound literal reference.


The documentation for this union was generated from the following file: