15#include <AUI/Util/ACommandLineArgs.h>
40#ifdef AUI_TESTS_MODULE
42 AUI_EXPORT int aui_entry(const AStringVector& args); \
43 AUI_EXPORT int aui_main(int argc, char** argv, int(*aui_entry)(const AStringVector&)); \
44 int fake_main(int argc, char** argv) { \
45 return aui_main(argc, argv, aui_entry);\
47AUI_EXPORT int aui_entry(const AStringVector& args)
50 AUI_EXPORT int aui_entry(const AStringVector& args); \
51 AUI_EXPORT int aui_main(int argc, char** argv, int(*aui_entry)(const AStringVector&)); \
52 int main(int argc, char** argv) { \
53 return aui_main(argc, argv, aui_entry);\
55 int __stdcall WinMain( \
56 HINSTANCE hInstance, \
57 HINSTANCE hPrevInstance, \
61 return main(0, nullptr); \
63AUI_EXPORT int aui_entry(const AStringVector& args)
65#elif AUI_PLATFORM_ANDROID
70 AUI_EXPORT int aui_entry(const AStringVector& args); \
71 AUI_EXPORT int aui_main(JavaVM* vm, int(*aui_entry)(const AStringVector&)); \
73JNIEXPORT jint JNICALL \
74JNI_OnLoad(JavaVM* vm, void* reserved) { \
75 aui_main(vm, aui_entry); \
76 return JNI_VERSION_1_2; \
78 AUI_EXPORT int aui_entry(const AStringVector& args)
83#ifdef AUI_TESTS_MODULE
85 AUI_EXPORT int aui_entry(const AStringVector& args); \
86 AUI_EXPORT int aui_main(int argc, char** argv, int(*aui_entry)(const AStringVector&)); \
87 int fake_main(int argc, char** argv) { \
88 return aui_main(argc, argv, aui_entry);\
90 AUI_EXPORT int aui_entry(const AStringVector& args)
93 AUI_EXPORT int aui_entry(const AStringVector& args); \
94 AUI_EXPORT int aui_main(int argc, char** argv, int(*aui_entry)(const AStringVector&)); \
95 int main(int argc, char** argv) { \
96 return aui_main(argc, argv, aui_entry);\
98 AUI_EXPORT int aui_entry(const AStringVector& args)
Simple command line arguments parser.
Definition: ACommandLineArgs.h:22
API_AUI_CORE const ACommandLineArgs & args() noexcept
Definition: OSAndroid.cpp:29