debugging function debug_output_path() moved to utils.cpp/hpp

and it now prints to console the default path when called for the first time.
Fixed compilation of debugging output in SupportMaterial.
This commit is contained in:
Vojtech Bubnik 2021-08-27 11:25:50 +02:00
parent f90b10b63e
commit ae8e0311d7
4 changed files with 75 additions and 64 deletions

View file

@ -65,18 +65,6 @@ static constexpr double EXTERNAL_INFILL_MARGIN = 3.;
#define SCALED_EPSILON scale_(EPSILON)
#define SLIC3R_DEBUG_OUT_PATH_PREFIX "out/"
inline std::string debug_out_path(const char *name, ...)
{
char buffer[2048];
va_list args;
va_start(args, name);
std::vsprintf(buffer, name, args);
va_end(args);
return std::string(SLIC3R_DEBUG_OUT_PATH_PREFIX) + std::string(buffer);
}
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif /* UNUSED */