diff options
Diffstat (limited to 'static/freebsd/man9/CTASSERT.9 4.html')
| -rw-r--r-- | static/freebsd/man9/CTASSERT.9 4.html | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/static/freebsd/man9/CTASSERT.9 4.html b/static/freebsd/man9/CTASSERT.9 4.html deleted file mode 100644 index 36b11f67..00000000 --- a/static/freebsd/man9/CTASSERT.9 4.html +++ /dev/null @@ -1,65 +0,0 @@ -<table class="head"> - <tr> - <td class="head-ltitle">CTASSERT(9)</td> - <td class="head-vol">Kernel Developer's Manual</td> - <td class="head-rtitle">CTASSERT(9)</td> - </tr> -</table> -<div class="manual-text"> -<section class="Sh"> -<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> -<p class="Pp"><code class="Nm">CTASSERT</code> — <span class="Nd">compile - time assertion macro</span></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> -<p class="Pp"><code class="In">#include - <<a class="In">sys/param.h</a>></code> - <br/> - <code class="In">#include <<a class="In">sys/systm.h</a>></code></p> -<p class="Pp"><code class="Fn">CTASSERT</code>(<var class="Fa" style="white-space: nowrap;">expression</var>);</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> -<p class="Pp">The - <a class="permalink" href="#CTASSERT"><code class="Fn" id="CTASSERT">CTASSERT</code></a>() - macro is deprecated and the C11 standard - <a class="permalink" href="#_Static_assert"><code class="Fn" id="_Static_assert">_Static_assert</code></a>() - should be used instead. The header <var class="Fa">sys/cdefs.h</var> should - be included to provide compatibility for pre-C11 compilers.</p> -<p class="Pp" id="CTASSERT~2">The - <a class="permalink" href="#CTASSERT~2"><code class="Fn">CTASSERT</code></a>() - macro evaluates <var class="Fa">expression</var> at compile time and causes - a compiler error if it is false.</p> -<p class="Pp" id="CTASSERT~3">The - <a class="permalink" href="#CTASSERT~3"><code class="Fn">CTASSERT</code></a>() - macro is useful for asserting the size or alignment of important data - structures and variables during compilation, which would otherwise cause the - code to fail at run time.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1> -<p class="Pp">Assert that the size of the <var class="Vt">uuid</var> structure - is 16 bytes.</p> -<p class="Pp"></p> -<div class="Bd Bd-indent"><code class="Li">CTASSERT(sizeof(struct uuid) == - 16);</code></div> -</section> -<section class="Sh"> -<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE - ALSO</a></h1> -<p class="Pp"><a class="Xr">KASSERT(9)</a></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> -<p class="Pp">This manual page was written by <span class="An">Hiten M. - Pandya</span> - <<a class="Mt" href="mailto:hmp@FreeBSD.org">hmp@FreeBSD.org</a>>.</p> -</section> -</div> -<table class="foot"> - <tr> - <td class="foot-date">August 1, 2015</td> - <td class="foot-os">FreeBSD 15.0</td> - </tr> -</table> |
