| 191 | } |
| 192 | |
| 193 | bool 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 | |
| 209 | bool LASzip::check_compressor(const U16 compressor) |
| 210 | { |
nothing calls this directly
no outgoing calls
no test coverage detected