mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 13:01:07 +01:00
ircd::util: Improve the test trigger prototype.
This commit is contained in:
parent
1b65cc36c8
commit
c0402f08f4
2 changed files with 11 additions and 5 deletions
|
@ -11,8 +11,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#define HAVE_IRCD_UTIL_TEST_H
|
#define HAVE_IRCD_UTIL_TEST_H
|
||||||
|
|
||||||
namespace ircd {
|
namespace ircd
|
||||||
inline namespace util
|
|
||||||
{
|
{
|
||||||
void test();
|
extern "C" bool ircd_test(const string_view & = {});
|
||||||
}}
|
}
|
||||||
|
|
|
@ -416,10 +416,17 @@ console_cmd__exit(opt &out, const string_view &line)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Test trigger stub
|
||||||
|
//
|
||||||
bool
|
bool
|
||||||
console_cmd__test(opt &out, const string_view &line)
|
console_cmd__test(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
ircd::test(); // Test trigger stub
|
const bool result
|
||||||
|
{
|
||||||
|
ircd_test(line)
|
||||||
|
};
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue