xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
Keywords are predefined, reserved identifiers that have special meanings to the compiler.
Macros | |
#define | block_scope_(...) |
The specified expression is cleared automatically when the scope is ended. More... | |
#define | core_export_ |
Define shared library export. More... | |
#define | csf_ |
Provides information about the current stack frame. More... | |
#define | current_stack_frame_ |
Provides information about the current stack frame. More... | |
#define | drawing_export_ |
Define shared library export. More... | |
#define | export_ |
Define shared library export. More... | |
#define | forms_export_ |
Define shared library export. More... | |
#define | interface_ |
This keyword is use to represent an interface. More... | |
#define | nameof_(...) |
Used to obtain the simple (unqualified) string name of a variable, type, or member. More... | |
#define | startup_(main_class) |
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. More... | |
#define | static_ |
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted). More... | |
#define | static_object_ |
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted). More... | |
#define | system_exception_(...) |
Helper on system_exception to call it with caller information. More... | |
#define | tunit_export_ |
Define shared library export. More... | |
#define | typeof_ |
Used to obtain the type string for a type. A typeof_ expression takes the following form: More... | |
#define | unused_ |
It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated. More... | |
#define | using_(...) |
The specified expression is cleared automatically when the scope is ended. More... | |
#define block_scope_ | ( | ... | ) |
#include <xtd.core/include/xtd/block_scope.h>
The specified expression is cleared automatically when the scope is ended.
#define core_export_ |
#include <xtd.core/include/xtd/core_export.h>
Define shared library export.
#define csf_ |
#include <xtd.core/include/xtd/diagnostics/stack_frame.h>
Provides information about the current stack frame.
#define current_stack_frame_ |
#include <xtd.core/include/xtd/diagnostics/stack_frame.h>
Provides information about the current stack frame.
#define drawing_export_ |
#include <xtd.drawing/include/xtd/drawing_export.h>
Define shared library export.
#define export_ |
#define forms_export_ |
#include <xtd.forms/include/xtd/forms_export.h>
Define shared library export.
#define interface_ |
#include <xtd.core/include/xtd/interface.h>
This keyword is use to represent an interface.
#define nameof_ | ( | ... | ) |
#include <xtd.core/include/xtd/nameof.h>
Used to obtain the simple (unqualified) string name of a variable, type, or member.
When reporting errors in code, hooking up model-view-controller (MVC) links, firing property changed events, etc., you often want to capture the string name of a method. Using nameof helps keep your code valid when renaming definitions. Before, you had to use string literals to refer to definitions, which is brittle when renaming code elements because tools do not know to check these string literals.
A nameof expression has this form:
#define startup_ | ( | main_class | ) |
#include <xtd.core/include/xtd/startup.h>
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.
main_class | The class that contains the static main method. |
#define static_ |
#include <xtd.core/include/xtd/static.h>
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted).
#define static_object_ |
#include <xtd.core/include/xtd/static.h>
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted).
#define system_exception_ | ( | ... | ) |
#include <xtd.core/include/xtd/system_exception.h>
Helper on system_exception to call it with caller information.
#define tunit_export_ |
#include <xtd.tunit/include/xtd/tunit_export.h>
Define shared library export.
#define typeof_ |
#include <xtd.core/include/xtd/typeof.h>
Used to obtain the type string for a type. A typeof_ expression takes the following form:
#define unused_ |
#include <xtd.core/include/xtd/unused.h>
It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated.
args | variables to suppress the unused warning |
#define using_ | ( | ... | ) |
#include <xtd.core/include/xtd/using.h>
The specified expression is cleared automatically when the scope is ended.