Skip to content

Commit

Permalink
Add missing context names to the switch in debug_context
Browse files Browse the repository at this point in the history
Now, `PM_DEBUG_LOGGING` can be available.
  • Loading branch information
makenowjust committed Dec 1, 2023
1 parent 4a6af19 commit 569ffac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ debug_context(pm_context_t context) {
case PM_CONTEXT_DEF_PARAMS: return "DEF_PARAMS";
case PM_CONTEXT_DEFAULT_PARAMS: return "DEFAULT_PARAMS";
case PM_CONTEXT_ENSURE: return "ENSURE";
case PM_CONTEXT_ENSURE_DEF: return "ENSURE_DEF";
case PM_CONTEXT_ELSE: return "ELSE";
case PM_CONTEXT_ELSIF: return "ELSIF";
case PM_CONTEXT_EMBEXPR: return "EMBEXPR";
Expand All @@ -56,6 +57,8 @@ debug_context(pm_context_t context) {
case PM_CONTEXT_PREEXE: return "PREEXE";
case PM_CONTEXT_RESCUE: return "RESCUE";
case PM_CONTEXT_RESCUE_ELSE: return "RESCUE_ELSE";
case PM_CONTEXT_RESCUE_ELSE_DEF: return "RESCUE_ELSE_DEF";
case PM_CONTEXT_RESCUE_DEF: return "RESCUE_DEF";
case PM_CONTEXT_SCLASS: return "SCLASS";
case PM_CONTEXT_UNLESS: return "UNLESS";
case PM_CONTEXT_UNTIL: return "UNTIL";
Expand Down

0 comments on commit 569ffac

Please sign in to comment.