diff options
author | Patrick Pelissier <patrick.pelissier@gmail.com> | 2020-05-06 00:34:12 +0300 |
---|---|---|
committer | Patrick Pelissier <patrick.pelissier@gmail.com> | 2020-05-06 00:34:12 +0300 |
commit | 9ba2de4b704adba8b467ff99a821080c997366f7 (patch) | |
tree | ce1778d946a4d789267ec732ea999f9f2a33ee2d /m-funcobj.h | |
parent | 0ac6a53fe9618b8caf31bf5282cd594d063e18f2 (diff) |
Add macro M_IF_FUNCOBJ to handle conditional expression if the function object is defined
Diffstat (limited to 'm-funcobj.h')
-rw-r--r-- | m-funcobj.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m-funcobj.h b/m-funcobj.h index 55d4833..c070e8a 100644 --- a/m-funcobj.h +++ b/m-funcobj.h @@ -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. * |