src: each platform has a name, except for the default
[nit.git] / src / platform / platform.nit
index 5b7f7a5..40069c4 100644 (file)
@@ -104,6 +104,10 @@ end
 #
 # Services will be added to this class in other modules.
 class Platform
+
+       # Simple lower-case name of the platform
+       fun name: nullable String do return null
+
        # Does the platform provide and support the library `unwind`?
        fun supports_libunwind: Bool do return true