Skip to content

Commit 8221992

Browse files
k-takatanobu
authored andcommitted
[k-takata/Onigmo] Disable error message for capture history when not needed
Add `#ifdef USE_CAPTURE_HISTORY`. k-takata/Onigmo@8217be2c3a
1 parent e491e97 commit 8221992

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

regerror.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ onig_error_code_to_format(OnigPosition code)
173173
p = "multiplex definition name <%n> call"; break;
174174
case ONIGERR_NEVER_ENDING_RECURSION:
175175
p = "never ending recursion"; break;
176+
#ifdef USE_CAPTURE_HISTORY
176177
case ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY:
177178
p = "group number is too big for capture history"; break;
179+
#endif
178180
case ONIGERR_INVALID_CHAR_PROPERTY_NAME:
179181
p = "invalid character property name {%n}"; break;
180182
case ONIGERR_TOO_MANY_CAPTURE_GROUPS:

0 commit comments

Comments
 (0)