node = SizeofTypeNode(node.function.pos, arg_type=type)
else:
node = SizeofVarNode(node.function.pos, operand=node.args[0])
- elif function == 'typeof':
- if len(node.args) != 1:
- error(node.function.pos, u"typeof() takes exactly one argument")
- else:
- node = TypeofNode(node.function.pos, operand=node.args[0])
- elif function == 'address':
- if len(node.args) != 1:
- error(node.function.pos, u"address() takes exactly one argument")
- else:
- node = AmpersandNode(node.function.pos, operand=node.args[0])
elif function == 'cmod':
if len(node.args) != 2:
- error(node.function.pos, u"cmod() takes exactly one argument" % function)
+ error(node.function.pos, u"cmod() takes exactly two arguments")
else:
node = binop_node(node.function.pos, '%', node.args[0], node.args[1])
node.cdivision = True