Skip to content

Common Utilities

The common software component contains some common definitions used by other software components and projects.

  • fatal.h: Defines the die(<dying gasp message>) macro.

    Example:

    if (fr || (fno.fattrib & AM_DIR)) die("File not found: %s.\n", filename);

  • inout.h: Defines IN, OUT and INOUT parameter prefixes.

    Example: void foo(IN uint32_t *inp, OUT uint32_t *outp, INOUT uint32_t *inoutp)