0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd::util: Improve the test trigger prototype.

This commit is contained in:
Jason Volk 2019-07-10 19:44:22 -07:00
parent 1b65cc36c8
commit c0402f08f4
2 changed files with 11 additions and 5 deletions

View file

@ -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 & = {});
}

View file

@ -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;
}