reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
generics.h File Reference

This file provides macros for Generic Reactors in C-Target. More...

Go to the source code of this file.

Macros

#define lf_decay(p)
 Decay the specified pointer.
#define lf_get_pointer(p)
 Return the pointer for specified p.
#define lf_is_pointer(p)
 Check whether the passed variable p is a pointer.
#define lf_is_pointer_or_array(p)
 Check whether the passed variable p is an array or a pointer.
#define lf_is_same(typename, b)
 Check whether the type of b is same as the specified typename.
#define lf_is_same_type(a, b)
 Check whether the types of both a and b are same.
#define lf_is_type_equal(typename_a, typename_b)
 Check whether the type of typename_a is same as the type of typename_b.
#define lf_to_left_type(left, right)
 Check types for both left and right and return appropriate value based on left type.
#define var   __auto_type

Detailed Description

This file provides macros for Generic Reactors in C-Target.

Author
Muhammad Khubaib Umer

The macros are wrappers on compiler builtin and provide the programmer to auto-infer types and conditionals based on types

Macro Definition Documentation

◆ var

#define var   __auto_type