preprocessor.expect.txt 1.0 KB

12345678910111213
  1. <span class="hljs-meta">#<span class="hljs-meta-keyword">include</span> <span class="hljs-meta-string">&lt;iostream&gt;</span></span>
  2. <span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> foo 1&lt;&lt;16</span>
  3. <span class="hljs-meta">#<span class="hljs-meta-keyword">ifdef</span> DEBUG</span>
  4. <span class="hljs-function">TYPE1 <span class="hljs-title">foo</span><span class="hljs-params">(<span class="hljs-keyword">void</span>)</span>
  5. <span class="hljs-meta">#<span class="hljs-meta-keyword">else</span></span>
  6. <span class="hljs-keyword">int</span> <span class="hljs-title">foo</span><span class="hljs-params">(<span class="hljs-keyword">void</span>)</span>
  7. <span class="hljs-meta">#<span class="hljs-meta-keyword">endif</span></span>
  8. </span>{ }
  9. <span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> x(v) ((v))</span>
  10. <span class="hljs-meta"># <span class="hljs-meta-keyword">define</span> x(v) ((v))</span>
  11. <span class="hljs-meta"># <span class="hljs-meta-keyword">define</span> x(v) ((v))</span>