u-boot/doc/api/setjmp.rst
Jerome Forissier b989f9ed9f test: lib: add initjmp() test
Test the initjmp() function when HAVE_INITJMP is set. Use the test as an
example in the API documentation.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2025-04-23 13:19:44 -06:00

21 lines
360 B
ReStructuredText

.. SPDX-License-Identifier: GPL-2.0-or-later
Long jump API
=============
.. kernel-doc:: include/setjmp.h
:doc: Overview
.. kernel-doc:: include/setjmp.h
:internal:
Example
-------
Here is an example showing how to use the a long jump functions and
initjmp() in particular:
.. literalinclude:: ../../test/lib/initjmp.c
:language: c
:linenos: