c-resources/CPlusPlus20ForProgrammers-m.../examples/libraries/fmt/test/static-export-test/library.cc

6 lines
142 B
C++

#include <fmt/compile.h>
__attribute__((visibility("default"))) std::string foo() {
return fmt::format(FMT_COMPILE("foo bar {}"), 4242);
}