Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2016 08:26:59 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Don Lewis <truckman@FreeBSD.org>, glebius@FreeBSD.org
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r296880 - in head: share/man/man9 sys/kern sys/sys
Message-ID:  <56E90AC3.50802@selasky.org>
In-Reply-To: <201603152156.u2FLuDPJ035986@gw.catspoiler.org>
References:  <201603152156.u2FLuDPJ035986@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/15/16 22:56, Don Lewis wrote:
> How can you do a CTASSERT() on something that isn't known at compile
> time?
>

It can be part of the API, that some arguments cannot be variables. It 
makes typechecking and other checking easier.

Gleb: I'll test and submit an array size assert for the static sysctl 
u64 array version.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56E90AC3.50802>