diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:15:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:15:24 +0000 |
| commit | ea81a192a65a03b664dac61de21e06cea7aa97a2 (patch) | |
| tree | f21447aeb9f24320ea6c1c4cb7a05539646bb85a /src/file.cc | |
| parent | 75788462338b1b4f464d075465da3cb372c40004 (diff) | |
Purge assert() from src/, at least (not asdcplib).
Diffstat (limited to 'src/file.cc')
| -rw-r--r-- | src/file.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file.cc b/src/file.cc index f4a91add..f2915947 100644 --- a/src/file.cc +++ b/src/file.cc @@ -23,6 +23,7 @@ #include "file.h" #include "util.h" +#include "dcp_assert.h" #include <stdio.h> using namespace dcp; @@ -35,7 +36,7 @@ File::File (boost::filesystem::path file) _size = boost::filesystem::file_size (file); _data = new uint8_t[_size]; FILE* f = dcp::fopen_boost (file, "r"); - assert (f); + DCP_ASSERT (f); fread (_data, 1, _size, f); fclose (f); } |
