diff --git a/chatterino.pro b/chatterino.pro index 3b704d192..068fdf9e1 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -170,7 +170,8 @@ HEADERS += \ src/widgets/splitcontainer.hpp \ src/widgets/helper/droppreview.hpp \ src/widgets/helper/splitcolumn.hpp \ - src/util/irchelpers.hpp + src/util/irchelpers.hpp \ + src/util/helpers.hpp PRECOMPILED_HEADER = diff --git a/src/util/helpers.hpp b/src/util/helpers.hpp new file mode 100644 index 000000000..8435a3494 --- /dev/null +++ b/src/util/helpers.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include + +namespace chatterino { + +template +auto fS(Args &&... args) -> decltype(fmt::format(std::forward(args)...)) +{ + return fmt::format(std::forward(args)...); +} + +} // namespace chatterino