Compiler Hint: “Inline function '…' has not been expanded…”

后端 未结 4 1145
难免孤独
难免孤独 2021-02-19 05:06

In a unit I use the function DeleteFile and the compiler outputs a hint:

\"H2443 Inline function \'DeleteFile\' has not been expanded because

4条回答
  •  感动是毒
    2021-02-19 06:06

    Inline functions are expanded in place by the compiler, avoiding the overhead of a function call. E.g. for squaring, sqr(x) is compiled in as x*x rather than calling a function that multiplies x and returns the result.

提交回复
热议问题