AGS Engine Coding Conventions: Difference between revisions

Removed 64-bit section, as being outdated
No edit summary
(Removed 64-bit section, as being outdated)
Line 173: Line 173:


Run-Time Type Information (RTTI) allows for querying of the type of an object at run-time. Executing code should not need to rely on this. Consider using virtual methods or redesigning the class as appropriate. RTTI can also create a notable increase in binary size.
Run-Time Type Information (RTTI) allows for querying of the type of an object at run-time. Executing code should not need to rely on this. Consider using virtual methods or redesigning the class as appropriate. RTTI can also create a notable increase in binary size.
===64-bit Compatibility===
For the time being, the AGS engine itself is strictly a 32-bit program, but we should keep in mind any issues that may arise on 64-bit platforms. Particularly if we do later port the code to 64-bit architectures, we should keep in mind the 64-bit Portability issues noted in the Google C++ Style Guide.
NOTE: As of this writing, there is now a 64-bit branch of the AGS engine in the works. It will eventually be merged with the 32-bit source to make the engine compatible with both architectures. This only increases the importance of the above.


===C++11 (formerly C++0x)===
===C++11 (formerly C++0x)===