How will i know whether inline function is actually replaced at the place where it is called or not?

前端 未结 10 797
长发绾君心
长发绾君心 2020-11-27 16:17

I know that inline function are either replaced where it is called or behave as a normal function.

But how will I know whether inline function is actually replaced a

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 17:15

    With gdb, if you cannot call to a function, one of its possible meanings is the function is inline. Flipping the reasoning, if you can call a function inside gdb, means the function is not marked inline.

提交回复
热议问题