<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
</div>Ah nvmd, the nested logic is the other way around. I still don't see the point<br>
in checking twice though.</blockquote><div><br></div><div>Ok, i'll try to describe in more details.</div><div><br></div><div>This patch adds 3 variants of behavior:</div><div><br></div><div>1) <assert.h> misses static_assert definition AND compiler misses _Static_assert definition:</div>
<div>define _Static_assert, then define static_assert as an alias for _Static_assert.</div><div><br></div><div>2) <assert.h> misses static_assert definition AND compiler has _Static_assert definition:</div><div>define static_assert as an alias for _Static_assert.</div>
<div><br></div><div>3) <assert.h> has static_assert definition:</div><div>do nothing.</div><div><br></div><div>Current logic is:</div><div><br></div><div>1) <assert.h> misses static_assert:</div><div>define _Static_assert (which definition conflicts with builtin Clang one in my case and leads to compile-time error) and define static_assert as an alias for _Static_assert.</div>
</div><br clear="all"><div><br></div>-- <br>Maxim Bublis
</div></div>