MCPcopy Create free account
hub / github.com/LASzip/LASzip / return_error

Method return_error

src/laszip.cpp:193–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool LASzip::return_error(const char* error)
194{
195
196#if defined(_MSC_VER) && \
197 (_MSC_FULL_VER >= 150000000)
198#define CopyString _strdup
199#else
200#define CopyString strdup
201#endif
202 char err[256];
203 snprintf(err, sizeof(err), "%s (LASzip v%d.%dr%d)", error, LASZIP_VERSION_MAJOR, LASZIP_VERSION_MINOR, LASZIP_VERSION_REVISION);
204 if (error_string) free(error_string);
205 error_string = CopyString(err);
206 return false;
207}
208
209bool LASzip::check_compressor(const U16 compressor)
210{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected