Ned Bass
421d95b3ea
Remove declarations in VERIFY3_IMPL to save stack
...
This has a minor impact on stack usage of individual functions, but the
VERIFY macros are used so frequently that their overhead may add up.
This macro declared two new local variables to cast its argument types.
Doing the typecast inline eliminates the need for these variables.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-02 13:34:48 -07:00
Brian Behlendorf
18b7a966e4
Minor build fixes from asm-generic change.
...
- Drop _NOTE(CONSTCOND) usage in libspl this is Solaris specific.
- Resolve conflicting OR and AND long prototypes.
2009-07-16 13:37:59 -07:00
Brian Behlendorf
9cf1451c53
Add ASSERTV macro to simplify removing variables (the V in ASSERTV)
...
when they are only used in ASSERTs which will be compiled out.
2009-07-09 12:08:40 -07:00
Brian Behlendorf
6d524f2906
Cleanup some of the #ifndef/#defines
2008-12-17 10:06:55 -08:00
Brian Behlendorf
5945ae3161
Move verify/assert userspace functionality to libspl to simply everything, this way it only lives in one place where you need to build with libzfs.h or zfs_context.h
2008-12-17 09:43:11 -08:00
Brian Behlendorf
4d6a2499f6
Minor update to assert, pull include_next out of ifdef
2008-12-16 09:35:40 -08:00
Brian Behlendorf
d46b60f374
Move libspl to new location
2008-12-11 15:06:34 -08:00