Closed ahogen closed 7 years ago
Thanks for reporting the outdated comment, I will repair it
audio_output_fifo_pull_sample is in a header file for performance reasons. With the way XC compiler currently handles inlining, we found we had to use the always_inline attribute to get it to always inline into audio_buffer_manager as needed.
I suspect the empty inline definition is there just to follow a convention. You would typically write that to give yourself a non-inlined version of the function to link against later should the compiler decide that the inline version isn't used at compile time and discard it. In this instance the empty definition can be safely removed, as you found.
Resolved by @larry-xmos in commit https://github.com/xmos/lib_tsn/commit/f4d5c83ffbe05114927495edae0a65b1061b2481
.c
or.xc
except for this one which is in.h
? Please be consistent.static inline unsigned int
declaration of this function in the corresponding .c file, with no implementation defined. I've removed it in my own code without any issues. Why is it there?Applies to: