Skip to content

Commit ac8456e

Browse files
committed
Add docuentatio and remove startup_class_
1 parent 307942e commit ac8456e

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/xtd.core/include/xtd/startup.hpp

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ namespace xtd {
261261
/// xtd.core
262262
/// @ingroup xtd_core keywords
263263
/// @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+
/// ```
264270
/// @par Examples
265271
/// This example show a main method without arguments and without return code
266272
/// @include main1.cpp
@@ -278,16 +284,3 @@ namespace xtd {
278284
return xtd::startup::safe_run(main_method); \
279285
} \
280286
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-
#define startup_class_(main_class) \
290-
auto main() -> int { \
291-
return xtd::startup::safe_run(main_class::main); \
292-
} \
293-
auto __opaque_sftews__ = 0 // force to end with semicolon

0 commit comments

Comments
 (0)