Add macro M_IF_FUNCOBJ to handle conditional expression if the function object is defined

This commit is contained in:
Patrick Pelissier committed 2020-05-05 23:34:12 +02:00
1 parent 0ac6a53fe9
commit 9ba2de4b70
2 files changed
+13 -1

No files matched your search

+4 -1
View File
@@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MSTARLIB_FUNCOBJ_H
#define MSTARLIB_FUNCOBJ_H 1
#define MSTARLIB_FUNCOBJ_H
#include "m-core.h"
@@ -70,6 +70,9 @@
/********************************** INTERNAL ************************************/
/********************************************************************************/
/* To be used by M_IF_FUNCOBJ macro */
#define M_FUNCOBJ_IS_NOT_DEFINED 0
/* Design Constraints:
* callback SHALL be the first member of the structures in all the definitions.
*