# HG changeset patch # User Paul Boddie # Date 1549066732 -3600 # Node ID 29b9788086f4233f372b2dc277058b86246cabdb # Parent c34258c626307606b8a3a13449120a9182703ce4 Define __ISNULL as a macro. diff -r c34258c62630 -r 29b9788086f4 templates/ops.c --- a/templates/ops.c Fri Feb 01 00:50:48 2019 +0100 +++ b/templates/ops.c Sat Feb 02 01:18:52 2019 +0100 @@ -401,11 +401,6 @@ return __test_specific_instance(obj, &__FUNCTION_TYPE); } -int __ISNULL(__attr value) -{ - return (value.value == 0); /* __NULL.value */ -} - /* Attribute codes and positions for type objects. */ unsigned int __TYPECODE(__ref obj) diff -r c34258c62630 -r 29b9788086f4 templates/ops.h --- a/templates/ops.h Fri Feb 01 00:50:48 2019 +0100 +++ b/templates/ops.h Sat Feb 02 01:18:52 2019 +0100 @@ -135,7 +135,8 @@ /* Type testing. */ __ref __ISFUNC(__ref obj); -int __ISNULL(__attr value); + +#define __ISNULL(__ATTR) (!__ATTR.value) /* Attribute codes and positions for type objects. */