printf("This system is big-endian.\n");
}
printf("\n");
+ if(!dataworks_get_if_supported()){
+ printf("!!! THIS PLATFORM IS UNSUPPORTED! !!!\n\n");
+ }
printf("%s\n", dataworks_get_copyright());
printf("All rights reserved.\n");
}
#include "dataworks.h"
+#include <stdbool.h>
+
const char* dataworks_version = "0.0.0";
const char* dataworks_compile_date = __DATE__;
const char* dataworks_copyright = "Copyright (c) Crabware 2024\n"
" Crabware is the software-development division of\n"
" Hinode Gakuen PC-Club. Contact: <nishi@nishi.boats>";
+#define SUPPORTED
#if defined(__MINGW32__)
const char* dataworks_platform = "Windows/"
#elif defined(__NetBSD__)
#elif defined(__WATCOMC__)
const char* dataworks_platform = "WatcomC/"
#else
+#undef SUPPORTED
const char* dataworks_platform = "Unknown/"
#endif
PLATFORM_M " (" PLATFORM_P ")";
}
const char* dataworks_get_copyright(void) { return dataworks_copyright; }
+bool dataworks_get_if_supported(void){
+#ifdef SUPPORTED
+ return true;
+#else
+ return false;
+#endif
+}
extern "C" {
#endif
+#include <stdbool.h>
+
/**
* @~english
* @brief Get the version of DataWorks
*/
const char* dataworks_get_copyright(void);
+/**
+ * @~english
+ * @brief Get if your platform is supported or not
+ * @return Supported or not
+ *
+ */
+bool dataworks_get_if_supported(void);
+
#ifdef __cplusplus
}
#endif