forked from lijiext/lammps
rename _internal_logmesg() to fmtargs_logmesg()
vlogmesg() can be too easily confused with logmesg()
This commit is contained in:
parent
a49d783e16
commit
a0b0681cc8
|
@ -131,8 +131,8 @@ void utils::logmesg(LAMMPS *lmp, const std::string &mesg)
|
|||
if (lmp->logfile) fputs(mesg.c_str(), lmp->logfile);
|
||||
}
|
||||
|
||||
void utils::_internal_logmesg(LAMMPS *lmp, fmt::string_view format,
|
||||
fmt::format_args args)
|
||||
void utils::fmtargs_logmesg(LAMMPS *lmp, fmt::string_view format,
|
||||
fmt::format_args args)
|
||||
{
|
||||
if (lmp->screen) fmt::vprint(lmp->screen, format, args);
|
||||
if (lmp->logfile) fmt::vprint(lmp->logfile, format, args);
|
||||
|
|
|
@ -49,8 +49,8 @@ namespace LAMMPS_NS {
|
|||
|
||||
/* Internal function handling the argument list for logmesg(). */
|
||||
|
||||
void _internal_logmesg(LAMMPS *lmp, fmt::string_view format,
|
||||
fmt::format_args args);
|
||||
void fmtargs_logmesg(LAMMPS *lmp, fmt::string_view format,
|
||||
fmt::format_args args);
|
||||
|
||||
/** Send formatted message to screen and logfile, if available
|
||||
*
|
||||
|
@ -65,8 +65,8 @@ namespace LAMMPS_NS {
|
|||
|
||||
template <typename S, typename... Args>
|
||||
void logmesg(LAMMPS *lmp, const S &format, Args&&... args) {
|
||||
_internal_logmesg(lmp, format,
|
||||
fmt::make_args_checked<Args...>(format, args...));
|
||||
fmtargs_logmesg(lmp, format,
|
||||
fmt::make_args_checked<Args...>(format, args...));
|
||||
}
|
||||
|
||||
/** \overload
|
||||
|
|
Loading…
Reference in New Issue