[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: Add "level" argument to assert()
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 9 Apr 2011 14:33:18 -0300
> Maybe a varargs (print-like) version of assert() could avoid this
> dilemma. Or a generic:
>
> assert(cond, func, ...)
>
> that calls func(...) in case of assertion failure, before exiting.
Something like this?
http://lua-users.org/lists/lua-l/2010-05/msg00494.html