• thebestaquaman@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    personally I prefer including the file

    prog_constants.h

    int program_state; // Keeps track of stuff

    in all translation units. That way I can easily keep track of what different parts of the program are doing at any time by modifying a single variable.