Skip to content

Commit

Permalink
Fail early in case of unsupported aspect patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
eunovm committed Aug 21, 2019
1 parent 06f70ff commit b1f2e45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcpp/ldv-cpp-advice-weaver.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ ldv_cpp_evaluate_aspect_pattern (ldv_aspect_pattern_ptr pattern, const char **st
text = ldv_copy_str (ldv_i_match->i_macro->file_path);
else if (!strcmp (pattern->name, "line"))
number = ldv_i_match->i_macro->line;
else
{
LDV_CPP_FATAL_ERROR ("aspect pattern \"%s\" wasn't weaved", pattern->name);
}

if (text)
*string = text;
Expand Down

0 comments on commit b1f2e45

Please sign in to comment.