Game Development Community

Mac platform files with .mm extension

by Steve Lamperti · in Torque 3D Professional · 07/09/2009 (1:01 pm) · 2 replies

Could someone enlighten me as to why some of the mac Platform files have a .mm extension? As far as I can tell these files look like they have C++ code in them, so I can't see why they aren't named .cpp.

Thanks for enlightening me.

#1
07/09/2009 (4:04 pm)
Answered my own question. They are objective C files, not straight C++ files.
#2
07/10/2009 (2:16 pm)

To be 100% correct, .mm are Objective-C++ files, Apple's merger of Objective-C and C++. Objective-C uses just plain .m.