Commit a8085c96 authored by Sergio Costas's avatar Sergio Costas

Now allows to pass NULL to __crusty_t__ function parameters

parent 9feaaaa4
......@@ -287,7 +287,7 @@ class crusty(object):
for pos in range(len(node.function_params)):
variable = node.function_params[pos]
if variable.type != "IDENTIFIER":
if ((function_data[pos+1] & self.PROPERTY_CRUST_VARIABLE) != 0):
if ((function_data[pos+1] & self.PROPERTY_CRUST_VARIABLE) != 0) and (not variable.t_null):
self._add_error(self.MSG_CRITICAL,_("Expected a __crust_t__ variable at parameter {:d} when calling function '{:s}' at line {:d}").format(pos+1,node.name,node.line))
error_found = True
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment