We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
validatePlatform
1 parent c621800 commit 87c5e3eCopy full SHA for 87c5e3e
libs/validators.h
@@ -38,7 +38,16 @@ int validateGeneration(char* generation);
38
*/
39
int validatePattern(char* pattern);
40
41
-// TODO: Documentation
+/**
42
+ * @brief Validates a platform.
43
+ *
44
+ * This function checks if a provided platform matches `console`, `simple directmedia layer (sdl)`,
45
+ * `simple directmedia layer`, or `sdl`. The comparison is case insensitive.
46
47
+ * @param platform The platform to be validated.
48
49
+ * @return 1 if the platform is valid, 0 otherwise.
50
+ */
51
int validatePlatform(char* platform);
52
53
#endif // VALIDATORS_H_INCLUDED
0 commit comments