How to know if inline worked or not?

inlining of a funciton happens only on compile time so the only way know if the funcion has been inlined is to compile the souce code down to assembly code.

We can compare the outpt assembly code with and wihtout the inline.

References
  • Stack overflow: How will i know whether inline function is actually replaced at the place where it is called or not? Retrieved 24 May 2022, from https://stackoverflow.com/a/10631372?stw=2

Last updated