Author: paullanders
Date: Sat Jan 17 01:08:39 2015
New Revision: 38296

URL: http://svn.gna.org/viewcvs/gnustep?rev=38296&view=rev
Log:
Warning message when horizontal typesetter enters multiple levels of recursion

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSHorizontalTypesetter.m

Modified: 
libs/gui/branches/gnustep_testplant_branch/Source/GSHorizontalTypesetter.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSHorizontalTypesetter.m?rev=38296&r1=38295&r2=38296&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSHorizontalTypesetter.m  
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSHorizontalTypesetter.m  
Sat Jan 17 01:08:39 2015
@@ -1214,6 +1214,12 @@
       /* Since we might be the shared system typesetter, we must be
       reentrant. Thus, if we are already in use and can't lock our lock,
       we create a new instance and let it handle the call. */
+      
+      static NSUInteger RecursionCount = 0;
+      RecursionCount++;
+      if (RecursionCount > 1)
+        NSLog(@"%s:entering %d level recursion", __PRETTY_FUNCTION__, 
RecursionCount);
+
       GSHorizontalTypesetter *temp;
 
       temp = [[object_getClass(self) alloc] init];
@@ -1224,6 +1230,9 @@
                               nextGlyphIndex: nextGlyphIndex
                        numberOfLineFragments: howMany];
       DESTROY(temp);
+      
+      RecursionCount--;
+     
       return ret;
     }
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to