Skip to content

Instantly share code, notes, and snippets.

@bringhurst
Created November 5, 2014 19:13
Show Gist options
  • Save bringhurst/4036bd847ecc469b2c58 to your computer and use it in GitHub Desktop.
Save bringhurst/4036bd847ecc469b2c58 to your computer and use it in GitHub Desktop.
dcp check recursion
} 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