You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lest_MODULE() check for lest_FEATURE_AUTO_REGISTER and warn against auto registration.
Or define lest_MODULE() as static_assert( false, "...") for auto test registration.
Or just move lest_MODULE() into non-auto test registration preprocessor else branch.
This doesn't help though to warn against the following incompatible use which you likely encounter earlier:
// for auto test registration
#define CASE( name ) lest_CASE( specification, name );
// non-auto test registration:
static lest::test specification[] =
{
CASE(...) {}
}
See (end of) issue #23 "User-defined functions based on lest macros".
The text was updated successfully, but these errors were encountered:
So far found one opportunity to check:
lest_MODULE()
check forlest_FEATURE_AUTO_REGISTER
and warn against auto registration.lest_MODULE()
asstatic_assert( false, "...")
for auto test registration.lest_MODULE()
into non-auto test registration preprocessor else branch.This doesn't help though to warn against the following incompatible use which you likely encounter earlier:
See (end of) issue #23 "User-defined functions based on lest macros".
The text was updated successfully, but these errors were encountered: