@@ -858,28 +858,28 @@ void lutro_assetPath_init(AssetPathInfo* dest, const char* path)
858
858
859
859
void * lutro_malloc_internal (size_t size , const char * debug , int line )
860
860
{
861
- void * a = malloc (size );
861
+ void * a = malloc (size );
862
862
#if TRACE_ALLOCATION
863
- if (a ) {
864
- fprintf (stderr ,"TRACE ALLOC:%p:malloc:%s:%d\n" , a , debug , line );
865
- allocation_count ++ ;
866
- } else {
867
- fprintf (stderr ,"TRACE ALLOC:failure:malloc:%s:%d\n" , debug , line );
868
- }
863
+ if (a ) {
864
+ fprintf (stderr ,"TRACE ALLOC:%p:malloc:%s:%d\n" , a , debug , line );
865
+ allocation_count ++ ;
866
+ } else {
867
+ fprintf (stderr ,"TRACE ALLOC:failure:malloc:%s:%d\n" , debug , line );
868
+ }
869
869
#endif
870
- return a ;
870
+ return a ;
871
871
}
872
872
873
873
void lutro_free_internal (void * ptr , const char * debug , int line )
874
874
{
875
875
#if TRACE_ALLOCATION
876
- // Don't trace nop
877
- if (ptr ) {
878
- fprintf (stderr ,"TRACE ALLOC:%p:free:%s:%d\n" , ptr , debug , line );
879
- allocation_count -- ;
880
- }
876
+ // Don't trace nop
877
+ if (ptr ) {
878
+ fprintf (stderr ,"TRACE ALLOC:%p:free:%s:%d\n" , ptr , debug , line );
879
+ allocation_count -- ;
880
+ }
881
881
#endif
882
- free (ptr );
882
+ free (ptr );
883
883
}
884
884
885
885
void * lutro_calloc_internal (size_t nmemb , size_t size , const char * debug , int line )
0 commit comments