<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>C2y</anon>
  </categories>
  <description>プログラミング言語Cにおいて、式(expression)として扱えるコンパイル時アサートの実装例（C11以降）。*1 *22026-02-15追記：次期標準C2y向けに提案文書(PDF)N3715が採択され、関数形式マクロでの利便性向上を目的としてstatic_assert(cexp[, msg])構文を式(expression)としても利用できる。型voidをもつ単項式として定義される。 #include &lt;assert.h&gt; #define static_assert_expr(cexp_, msg_) \ ((void)sizeof(struct { \ static_assert(ce…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20250905%2Fp1&quot; title=&quot;式static_assert in C言語 - yohhoyの日記&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>2025-09-05 00:00:00</published>
  <title>式static_assert in C言語</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20250905/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
