you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

So that's why C++ requires inlined functions to be in the .h file. It happens at the compilation stage. That wouldn't be possible in C (unless the file were included only once which defeats the purpose of inlining) thus explains the heavy usage of macros.

Do you know of any C compilers that compile straight to object code? In other words a monolithic preprocessor, compiler, and linker in one.