API BREAKER: Replacing defines in irrTypes.h which are conflicting with c++ reserved identifier rules.
C++ has undefined behavior for identifiers starting with __ or with _ followed by an uppercase letter. We still have many more (in IrrCompileConfig.h and in all header-guards), will likely replace those later as well. As a workaround for users which might use irrlicht defines in their code, I've added the header irrLegacyDefines.h Including that allows to continue using old defines for a while - or make it easier to have code which compiles with old and new Irrlicht library versions. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6251 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -48,28 +48,28 @@ namespace io
|
||||
|
||||
//! returns true if the file maybe is able to be loaded by this class
|
||||
//! based on the file extension (e.g. ".zip")
|
||||
virtual bool isALoadableFileFormat(const io::path& filename) const _IRR_OVERRIDE_;
|
||||
virtual bool isALoadableFileFormat(const io::path& filename) const IRR_OVERRIDE;
|
||||
|
||||
//! Check if the file might be loaded by this class
|
||||
/** Check might look into the file.
|
||||
\param file File handle to check.
|
||||
\return True if file seems to be loadable. */
|
||||
virtual bool isALoadableFileFormat(io::IReadFile* file) const _IRR_OVERRIDE_;
|
||||
virtual bool isALoadableFileFormat(io::IReadFile* file) const IRR_OVERRIDE;
|
||||
|
||||
//! Check to see if the loader can create archives of this type.
|
||||
/** Check based on the archive type.
|
||||
\param fileType The archive type to check.
|
||||
\return True if the archile loader supports this type, false if not */
|
||||
virtual bool isALoadableFileFormat(E_FILE_ARCHIVE_TYPE fileType) const _IRR_OVERRIDE_;
|
||||
virtual bool isALoadableFileFormat(E_FILE_ARCHIVE_TYPE fileType) const IRR_OVERRIDE;
|
||||
|
||||
//! Creates an archive from the filename
|
||||
/** \param file File handle to check.
|
||||
\return Pointer to newly created archive, or 0 upon error. */
|
||||
virtual IFileArchive* createArchive(const io::path& filename, bool ignoreCase, bool ignorePaths) const _IRR_OVERRIDE_;
|
||||
virtual IFileArchive* createArchive(const io::path& filename, bool ignoreCase, bool ignorePaths) const IRR_OVERRIDE;
|
||||
|
||||
//! creates/loads an archive from the file.
|
||||
//! \return Pointer to the created archive. Returns 0 if loading failed.
|
||||
virtual io::IFileArchive* createArchive(io::IReadFile* file, bool ignoreCase, bool ignorePaths) const _IRR_OVERRIDE_;
|
||||
virtual io::IFileArchive* createArchive(io::IReadFile* file, bool ignoreCase, bool ignorePaths) const IRR_OVERRIDE;
|
||||
|
||||
private:
|
||||
io::IFileSystem* FileSystem;
|
||||
@@ -87,22 +87,22 @@ namespace io
|
||||
// file archive methods
|
||||
|
||||
//! return the id of the file Archive
|
||||
virtual const io::path& getArchiveName() const _IRR_OVERRIDE_
|
||||
virtual const io::path& getArchiveName() const IRR_OVERRIDE
|
||||
{
|
||||
return File->getFileName();
|
||||
}
|
||||
|
||||
//! opens a file by file name
|
||||
virtual IReadFile* createAndOpenFile(const io::path& filename) _IRR_OVERRIDE_;
|
||||
virtual IReadFile* createAndOpenFile(const io::path& filename) IRR_OVERRIDE;
|
||||
|
||||
//! opens a file by index
|
||||
virtual IReadFile* createAndOpenFile(u32 index) _IRR_OVERRIDE_;
|
||||
virtual IReadFile* createAndOpenFile(u32 index) IRR_OVERRIDE;
|
||||
|
||||
//! returns the list of files
|
||||
virtual const IFileList* getFileList() const _IRR_OVERRIDE_;
|
||||
virtual const IFileList* getFileList() const IRR_OVERRIDE;
|
||||
|
||||
//! get the class Type
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_ { return EFAT_PAK; }
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const IRR_OVERRIDE { return EFAT_PAK; }
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user