title: Should I use inline or #define in this issue?
body: <p>I work with pthreads and I want to use this code:</p>
  
  <pre><code>if(pthread_mutex_lock(&amp;lock)){
          cout&lt;&lt;"error"&lt;&lt;endl;
          return ERROR;
      }
  </code></pre>
  
  <p>my question is should I do it with <code>#define</code> or should I do it with inline function:</p>
  
  <pre><code>inline void func() {
  
  if(pthread_mutex_lock(&amp;lock)){
          cout&lt;&lt;"error"&lt;&lt;endl;
          return ERROR;
      }
  
  }
  </code></pre>
  
  <p>Should the function be static? such as:  </p>
  
  <pre><code>static inline void func() 
  </code></pre>