lib_xassert: Lightweight assertions library

FAVOURITE VERSION RELEASED COMMENTS DOCUMENTATION SOFTWARE
5.0.0 2026-05-12 v5 introduces timing based asserts, and updated xc file to c to improve toolchain compatibility VIEW HTML VIEW PDF ZIP
View older versions
4.3.2 2025-08-01 ZIP ZIP
4.3.1 2024-10-15 ZIP ZIP
3.0.0rc1 2016-10-28 PDF ZIP
2.0.1rc1 2016-01-07 PDF ZIP
2.0.0rc3 2015-11-10 PDF ZIP
2.0.0rc2 2015-11-05 PDF ZIP
2.0.0rc1 2015-03-22 PDF ZIP
INFO

Summary

This library provides a lightweight and flexible replacement for the standard C header assert.h.

The assertions in this library can be be enabled/disabled and configured as to how much information they show. This configuration can be per xassert unit (i.e. for sets of files).

Features

  • Low memory usage

  • Ability to enable or disable various features via compile time defines

  • Timing assertion system to check that code executes within a specified time limit

Known issues

  • Timing assertion APIs currently use translation-unit-local static state and are not thread safe; xassert_timing_start()/xassert_timing_end() must be used within the same source file and from a single thread (#64)

Development repo

Required tools

  • XMOS XTC Tools: 15.3.1

Required libraries (dependencies)

  • None

Support

This package is supported by XMOS Ltd. Issues can be raised against the software at www.xmos.com/support or using GitHub issues.

Scroll to Top