0
0
Fork 0
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:
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 #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 & = {});
}} }

View file

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