C4302: Could not generate inline expansion for this function call

[INFORMATION]

Description

The compiler could not replace the function call with the code of the function to be called. The expression containing the function call may be too complex, the function to be called may be recursive or too complex.

Example
  inline int f(int i) {

  
    if(i>10) return 0;

  
    return f(i+1);

  
  }

  
  void main() {

  
    int i=f(3);  // Cannot inline,

  
                 // because f() contains a recursive call

  
  }

  
Tips

To have the same effect as inlining the function, replace the call with the code of the function manually.