mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 20:28:52 +02:00
fixup! fixup! fixup! fixup! ircd: Add the va_rtti construct.
This commit is contained in:
parent
501ff60276
commit
99a4e523b8
2 changed files with 11 additions and 14 deletions
|
@ -33,16 +33,23 @@ IRCD_EXCEPTION(error, illegal);
|
|||
//
|
||||
// Module API
|
||||
//
|
||||
extern const char SPECIFIER;
|
||||
extern const char SPECIFIER_TERMINATOR;
|
||||
constexpr char SPECIFIER
|
||||
{
|
||||
'%'
|
||||
};
|
||||
|
||||
constexpr char SPECIFIER_TERMINATOR
|
||||
{
|
||||
'$'
|
||||
};
|
||||
|
||||
using arg = std::tuple<const void *, std::type_index>;
|
||||
|
||||
// Structural representation of a format specifier
|
||||
struct spec
|
||||
{
|
||||
char sign = '+';
|
||||
int width = 0;
|
||||
char sign {'+'};
|
||||
int width {0};
|
||||
string_view name;
|
||||
|
||||
spec() = default;
|
||||
|
|
10
ircd/fmt.cc
10
ircd/fmt.cc
|
@ -46,16 +46,6 @@ using qi::repeat;
|
|||
using qi::omit;
|
||||
using qi::unused_type;
|
||||
|
||||
const char SPECIFIER
|
||||
{
|
||||
'%'
|
||||
};
|
||||
|
||||
const char SPECIFIER_TERMINATOR
|
||||
{
|
||||
'$'
|
||||
};
|
||||
|
||||
std::map<string_view, specifier *> _specifiers;
|
||||
bool is_specifier(const string_view &name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue