michaeltyson / TPCircularBuffer

A simple, fast circular buffer implementation
http://atastypixel.com/blog/a-simple-fast-circular-buffer-implementation-for-audio-processing/
839 stars 141 forks source link

Path in the binary #31

Open Arthur111 opened 3 years ago

Arthur111 commented 3 years ago

Hello,

In TPCircularBuffer.c this directive

define reportResult(result,operation) (_reportResult((result),(operation),strrchr(FILE, '/')+1,LINE))

cause the path (FILE) to be written into the binary file (lib or executable)

reportResult must be use only in DEBUG mode

if DEBUG

            reportResult(result, "Buffer allocation");

endif

I fixed it :

TPCircular.zip