You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/xtd.core/include/xtd/startup.hpp
+6-13Lines changed: 6 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,12 @@ namespace xtd {
261
261
/// xtd.core
262
262
/// @ingroup xtd_core keywords
263
263
/// @param main_method The main method.
264
+
/// @par Implementation
265
+
/// ```cpp
266
+
/// auto main() -> int {
267
+
/// return xtd::startup::safe_run(main_method);
268
+
/// }
269
+
/// ```
264
270
/// @par Examples
265
271
/// This example show a main method without arguments and without return code
266
272
/// @include main1.cpp
@@ -278,16 +284,3 @@ namespace xtd {
278
284
returnxtd::startup::safe_run(main_method); \
279
285
} \
280
286
auto __opaque_sftews__ = 0// force to end with semicolon
281
-
282
-
/// @brief Defines the entry point to be called when the application loads. Generally this is set either to the main form in your application or to the main procedure that should run when the application starts.
283
-
/// @par Namespace
284
-
/// xtd
285
-
/// @par Library
286
-
/// xtd.core
287
-
/// @ingroup xtd_core keywords
288
-
/// @warning The main_class must ba have a static member main method. For other entry point that main use #startup_ keyword.
289
-
#definestartup_class_(main_class) \
290
-
automain() -> int { \
291
-
returnxtd::startup::safe_run(main_class::main); \
292
-
} \
293
-
auto __opaque_sftews__ = 0// force to end with semicolon
0 commit comments