acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
main.h
1// Created by camilo on 2025-07-31 14:17 <3ThomasBorregaardSørensen!!
2#pragma once
3
4
5#include "acme/_operating_system.h"
6#include "acme/platform/system_setup.h"
7
8
9#define APPLICATION_NAMESPACE_MAIN(function) IDENTIFIER_CONCATENATE(IDENTIFIER_CONCATENATE(IDENTIFIER_CONCATENATE(APPLICATION_NAMESPACE, _main), _), function)
10
11
12#if defined(WINDOWS)
13#define APPLICATION_NAMESPACE_MAIN_EXPORT CLASS_DECL_APPLICATION_NAMESPACE
14#else
15#define APPLICATION_NAMESPACE_MAIN_EXPORT extern "C"
16#endif
17
18
19APPLICATION_NAMESPACE_MAIN_EXPORT void APPLICATION_NAMESPACE_MAIN(create_system)();
20
21
22#if defined(WINDOWS)
23APPLICATION_NAMESPACE_MAIN_EXPORT void APPLICATION_NAMESPACE_MAIN(initialize_system)(HINSTANCE hinstanceThis, HINSTANCE hinstancePrev, WCHAR* pCmdLine, ::i32 nCmdShow);
24#elif defined(__ANDROID__)
25APPLICATION_NAMESPACE_MAIN_EXPORT void APPLICATION_NAMESPACE_MAIN(initialize_system)(::i32 argc, char_pointer argv[], char_pointer envp[], const_char_pointer p1, const_char_pointer p2);
26#else
27APPLICATION_NAMESPACE_MAIN_EXPORT void APPLICATION_NAMESPACE_MAIN(initialize_system)(::i32 argc, char_pointer argv[], char_pointer envp[], const_char_pointer p1, const_char_pointer p2);
28#endif
29
30
31APPLICATION_NAMESPACE_MAIN_EXPORT ::i32 APPLICATION_NAMESPACE_MAIN(main)();
32
33
34#ifdef CUBE
35#include "acme/platform/factory_function.h"
36#include "operating_system/appconfig.h"
37#include "__implement/_static_factory_.inl"
38#endif
39
40
41
Definition aaa_acme.h:15