Skip to content

Commit

Permalink
Make HookedLineInto/OutFunction symmetric
Browse files Browse the repository at this point in the history
Call HookedLineIntoFunction before RecursionDepth is incremented,
so the value of RecursionDepth is the same when calling both
HookedLineIntoFunction and HookedLineOutFunction for the same
function call.
  • Loading branch information
ChrisJefferson committed May 13, 2018
1 parent ba082d6 commit e4b03a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ Obj STEVES_TRACING;
#endif

#define CHECK_RECURSION_BEFORE \
CheckRecursionBefore(); \
HookedLineIntoFunction(func);
HookedLineIntoFunction(func); \
CheckRecursionBefore();

#define CHECK_RECURSION_AFTER \
DecRecursionDepth(); \
Expand Down

0 comments on commit e4b03a6

Please sign in to comment.