LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
macros.h File Reference

Common assertion and helper macros for LibJuno modules. More...

#include "juno/status.h"
#include <stdint.h>
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JUNO_ASSERT_EXISTS(ptr)
 Returns JUNO_STATUS_NULLPTR_ERROR if the expression is falsy.
 
#define JUNO_ASSERT_EXISTS_MODULE(ptr, ptMod, str)
 Like JUNO_ASSERT_EXISTS but also calls the module's failure handler.
 
#define JUNO_ASSERT_SUCCESS(tStatus, ...)
 Execute the provided failure operation(s) if status is not success.
 

Detailed Description

Common assertion and helper macros for LibJuno modules.