Skip to content

Commit 56d3d89

Browse files
committed
Indentation
1 parent 41606c9 commit 56d3d89

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lutro.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -858,28 +858,28 @@ void lutro_assetPath_init(AssetPathInfo* dest, const char* path)
858858

859859
void *lutro_malloc_internal(size_t size, const char* debug, int line)
860860
{
861-
void *a = malloc(size);
861+
void *a = malloc(size);
862862
#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+
}
869869
#endif
870-
return a;
870+
return a;
871871
}
872872

873873
void lutro_free_internal(void *ptr, const char* debug, int line)
874874
{
875875
#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+
}
881881
#endif
882-
free(ptr);
882+
free(ptr);
883883
}
884884

885885
void *lutro_calloc_internal(size_t nmemb, size_t size, const char* debug, int line)

0 commit comments

Comments
 (0)