mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +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
|
||||
#define HAVE_IRCD_UTIL_TEST_H
|
||||
|
||||
namespace ircd {
|
||||
inline namespace util
|
||||
namespace ircd
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
//
|
||||
// Test trigger stub
|
||||
//
|
||||
bool
|
||||
console_cmd__test(opt &out, const string_view &line)
|
||||
{
|
||||
ircd::test(); // Test trigger stub
|
||||
const bool result
|
||||
{
|
||||
ircd_test(line)
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue