summaryrefslogtreecommitdiffstats
path: root/source/cFile.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-20 00:00:00 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-20 00:00:00 +0100
commit0b616909e3472a4360e22d6b01749ee44092e967 (patch)
tree6a70857aa2839acd133b77fcc225af6828cb8f39 /source/cFile.cpp
parentFixed assertion bug in NamedEntitySpawn packet, it used to assert when item ID is 0, but now 0 is allowed (diff)
downloadcuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar
cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.gz
cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.bz2
cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.lz
cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.xz
cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.zst
cuberite-0b616909e3472a4360e22d6b01749ee44092e967.zip
Diffstat (limited to '')
-rw-r--r--source/cFile.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/cFile.cpp b/source/cFile.cpp
index 019b125ee..5ea71107a 100644
--- a/source/cFile.cpp
+++ b/source/cFile.cpp
@@ -57,7 +57,7 @@ cFile::~cFile()
bool cFile::Open(const AString & iFileName, EMode iMode)
{
- assert(!IsOpen()); // You should close the file before opening another one
+ ASSERT(!IsOpen()); // You should close the file before opening another one
if (IsOpen())
{
@@ -72,7 +72,7 @@ bool cFile::Open(const AString & iFileName, EMode iMode)
case fmReadWrite: Mode = "ab+"; break;
default:
{
- assert(!"Unhandled file mode");
+ ASSERT(!"Unhandled file mode");
return false;
}
}
@@ -86,7 +86,7 @@ bool cFile::Open(const AString & iFileName, EMode iMode)
void cFile::Close(void)
{
- assert(IsOpen()); // You should not close file objects that don't have an open file.
+ ASSERT(IsOpen()); // You should not close file objects that don't have an open file.
if (!IsOpen())
{
@@ -112,7 +112,7 @@ bool cFile::IsOpen(void) const
bool cFile::IsEOF(void) const
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{
@@ -130,7 +130,7 @@ bool cFile::IsEOF(void) const
/// Reads up to iNumBytes bytes into iBuffer, returns the number of bytes actually read, or -1 on failure; asserts if not open
int cFile::Read (void * iBuffer, int iNumBytes)
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{
@@ -147,7 +147,7 @@ int cFile::Read (void * iBuffer, int iNumBytes)
/// Writes up to iNumBytes bytes from iBuffer, returns the number of bytes actually written, or -1 on failure; asserts if not open
int cFile::Write(const void * iBuffer, int iNumBytes)
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{
@@ -165,7 +165,7 @@ int cFile::Write(const void * iBuffer, int iNumBytes)
/// Seeks to iPosition bytes from file start, returns old position or -1 for failure
int cFile::Seek (int iPosition)
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{
@@ -187,7 +187,7 @@ int cFile::Seek (int iPosition)
/// Returns the current position (bytes from file start)
int cFile::Tell (void) const
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{
@@ -204,7 +204,7 @@ int cFile::Tell (void) const
/// Returns the size of file, in bytes, or -1 for failure; asserts if not open
int cFile::GetSize(void) const
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{
@@ -234,7 +234,7 @@ int cFile::GetSize(void) const
int cFile::ReadRestOfFile(AString & a_Contents)
{
- assert(IsOpen());
+ ASSERT(IsOpen());
if (!IsOpen())
{