Created
November 5, 2014 19:13
-
-
Save bringhurst/4036bd847ecc469b2c58 to your computer and use it in GitHub Desktop.
dcp check recursion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
} else { | |
if(allow_recursion) { | |
last_argument_is_file = true | |
for(src in srcs) { | |
if (is_dir(src)) { | |
last_argument_is_file = false | |
} | |
} | |
if( number_of_source_files != 1 && last_argument_is_file ) { | |
error(impossible_condition) | |
} else { | |
last_argument_is_dir = !last_argument_is_file | |
} | |
} else { | |
last_argument_is_file = true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment