Spexygen Reference Manual 3.0.0
Loading...
Searching...
No Matches
header.h
Go to the documentation of this file.
1#ifndef HEADER_H_
2#define HEADER_H_
3
4#include <stdint.h>
5#include <stdbool.h>
6
7// This file (header.h) intentionally does NOT contain Doxygen
8// documentation. Instead, all code elements are documented
9// in the external file (code.dox). This allows the documentation
10// to evolve independently from the source code.
11
12// free function
13uint8_t const *free_fun(uint32_t x);
14
15// This following demonstrates how to document a *class* in C
16
17//! @class Foo
18typedef struct Foo {
19 uint32_t x; //!< @public @memberof Foo
20 uint32_t x_dis; //!< @private @memberof Foo
21} Foo;
22
23//! @public @memberof Foo
24void Foo_ctor(Foo * const me, uint32_t const x);
25
26//! @public @memberof Foo
27bool Foo_verify_(Foo const * const me);
28
29//! @public @memberof Foo
30void Foo_update_(Foo* const me);
31
32//! @public @static @memberof Foo
34
35#endif // HEADER_H_
uint8_t const * free_fun(uint32_t x)
Free function brief description.
Definition source.c:3
void Foo_update_(Foo *const me)
Definition source.c:19
void Foo_ctor(Foo *const me, uint32_t const x)
Definition source.c:14
bool Foo_verify_(Foo const *const me)
Definition source.c:23
Class Foo brief description.
Definition header.h:18
uint32_t x_dis
Duplicate Inverse Storage for attribute Foo::x.
Definition header.h:20
uint32_t x
Attribute x of class Foo brief description.
Definition header.h:19
Foo Foo_inst
Foo instance brief description (singleton).
Definition header.h:33