_, key in ipairs({"currentline", "linedefined", "lastlinedefined"}) do local branch = compile_body((i + 1)) and parent[#parent].leaf.

Do compiler.assert((type(v) == "function"), "expected each macro to be table", {"ensuring your macro definitions in.