I'm trying to define a function in a CPP file that is forward declared in the header file. I'd like to know the proper way to do it, since everything I've tried compiles and runs, and my analysis skills are not good enough to investigate if the functions are truly inlined.
Here's what I'd like to do
/// Source.h
void inlined_func(); // what specifiers should I put here?
// I was thinking about doing both `extern` and `__forceinline`
/// Source.cpp
__forceinline void inlined_func()
{
std::cout << "we're in the inlined func" << std::endl;
}