Closed drichmond closed 2 years ago
What you actually want here is to use "static"
Any function defined in a header file should be marked static for exactly this reason.
Use of inline is not guaranteed to work.
Should all of the functions in the header be static, then?
I just mimicked the rest of them.
10000000000% yes
BTW: I'm not saying inline is wrong, you just also need to mark them static.
Fixed, waiting for CI re-run
If this file is included in multiple .c files that are independently compiled into .o files, the linker will complain about duplicate symbols.