<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sygh</author_name>
  <author_url>https://blog.hatena.ne.jp/sygh/</author_url>
  <blog_title>syghの新フラグメント置き場</blog_title>
  <blog_url>https://sygh.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C#</anon>
    <anon>プログラミングTips</anon>
  </categories>
  <description>コンパイルエラーを意図的に発生させる#errorプリプロセッサディレクティブに関しては、お馴染みの#includeや#defineなどと同様に言語仕様として標準化されているようで、おそらくすべてのC/C++処理系でサポートされています。 #ifdef __cplusplus #error This code does not support C++!! #endif 問題は警告のほうです。C/C++でユーザー定義の警告を発生させる方法は標準化されていません。 gccには#warningディレクティブが存在するのですが、Visual C++には存在しません。Clangにも存在しないようです。 #…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsygh.hatenadiary.jp%2Fentry%2F2018%2F01%2F22%2F010030&quot; title=&quot;C/C++の#warning - syghの新フラグメント置き場&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-22 01:00:30</published>
  <title>C/C++の#warning</title>
  <type>rich</type>
  <url>https://sygh.hatenadiary.jp/entry/2018/01/22/010030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
