bio
 
Loading...
Searching...
No Matches
bio_tag_t Struct Reference

A unique tag. More...

#include <bio.h>

Data Fields

const char * name
 A human-readable name for the tag.
 
const char * file
 The file where the tag was defined.
 
int line
 The line where the tag was defined.
 

Detailed Description

A unique tag.

static const bio_tag_t UTILITY_TAG = BIO_TAG_INIT("my_project.utility");
#define BIO_TAG_INIT(NAME)
Utility macro for initializing a tag.
Definition bio.h:95
A unique tag.
Definition bio.h:189

bio uses tags for various purposes. The tag is always declared as a global static variable and passed around as a pointer. This makes it a globally unique identifier with attached metadata.

See also
BIO_TAG_INIT
bio_error_t
bio_set_coro_data
bio_make_handle

Field Documentation

◆ file

const char* bio_tag_t::file

The file where the tag was defined.

◆ line

int bio_tag_t::line

The line where the tag was defined.

◆ name

const char* bio_tag_t::name

A human-readable name for the tag.

A dot-separated package name style is recommended but not required. For example: my_project.engine.core


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