c-template
cg_return Struct Reference

allows returning both a value and error message from a function call useful as it makes it easier to provid better error message and handling similar to go More...

#include <returns.h>

Collaboration diagram for cg_return:

Data Fields

void * value
 
cg_errorerr
 

Detailed Description

allows returning both a value and error message from a function call useful as it makes it easier to provid better error message and handling similar to go

Definition at line 14 of file returns.h.

Field Documentation

◆ err

cg_error* cg_return::err

Definition at line 19 of file returns.h.

◆ value

void* cg_return::value

Definition at line 16 of file returns.h.


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