mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	GH-121583: Remove dependency from pystats.h to internal header file (GH-121587)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
		
							parent
							
								
									4e35dd607b
								
							
						
					
					
						commit
						f036a463db
					
				
					 2 changed files with 9 additions and 5 deletions
				
			
		|  | @ -29,6 +29,10 @@ GCStats _py_gc_stats[NUM_GENERATIONS] = { 0 }; | |||
| static PyStats _Py_stats_struct = { .gc_stats = _py_gc_stats }; | ||||
| PyStats *_Py_stats = NULL; | ||||
| 
 | ||||
| #if PYSTATS_MAX_UOP_ID < MAX_UOP_ID | ||||
| #error "Not enough space allocated for pystats. Increase PYSTATS_MAX_UOP_ID to at least MAX_UOP_ID" | ||||
| #endif | ||||
| 
 | ||||
| #define ADD_STAT_TO_DICT(res, field) \ | ||||
|     do { \ | ||||
|         PyObject *val = PyLong_FromUnsignedLongLong(stats->field); \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Droettboom
						Michael Droettboom