def splitdefines(txt):
    """split the code into two lists of defines and code"""
    pre = []
    c = []
    for line in txt.split("\n"):
        if line.startswith("#"):
            pre.append(line)
        else:
            c.append(line)
    return pre, c