Skip to content

Commit

Permalink
comment(build-namelist): Add a comment to address a code review point
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Dec 2, 2024
1 parent 1a352be commit 1556914
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,18 @@ sub setup_cmdl_chk_res {
}
}

#-------------------------------------------------------------------------------

sub begins_with
{
# Arguments: long-string, substring
# For an input long-string check if it starts with the substring
# For example, if a string like NEON_PRISM starts with NEON
return substr($_[0], 0, length($_[1])) eq $_[1];
}

#-------------------------------------------------------------------------------

sub setup_cmdl_resolution {
my ($opts, $nl_flags, $definition, $defaults, $envxml_ref) = @_;

Expand Down

0 comments on commit 1556914

Please sign in to comment.