def parsePreprocDefinedValueOptional(src, name):
    definition = re.search((('#\\s*define\\s+' + name) + '\\s+([^\\n]+)\\n'), src)
    if (definition is None):
        return None
    value = definition.group(1).strip()
    if (value == 'UINT32_MAX'):
        value = '(~0u)'
    return value
def parsePreprocDefinedValueOptional(src, name):
    definition = re.search((('#\\s*define\\s+' + name) + '\\s+([^\\n]+)\\n'), src)
    if (definition is None):
        return None
    value = definition.group(1).strip()
    if (value == 'UINT32_MAX'):
        value = '(~0u)'
    return value