① Click the menu bar-view-macros-to view the macros.
② Pop-up Macro interface, enter the name of the macro, here to facilitate memory, we named to move one column to the left, and then click the Create button.
③ in the new appearance of the interface, the input code, that is, the program language, I have written, you can copy directly.
application.screenupdating = False
x = Selec
You can use a macro to define a function that has no return value. For example:
Copy Code code as follows:
#define PRINTMAX (A, b) \ do \ {\ int x = A, y = b; \ printf ("Max:%d\n", x > y x:y); \} while (0)// ... Printmax (3, 4);
Such "functions" are essentially different from functions in real sense, because a macro is a compile-time behavior that replaces text only before it is compiled. In the Python source code, you can often see a macro definition similar to the follow
Preface
Export_symbol macros are used after Linux-2.6, in the Linux-2.4 kernel, the default non-static functions and variables are automatically imported into the kernel space and are not marked with Export_symbol ().
Then, after Linux-2.6, all symbols are not exported by default, so use Export_symbol () to mark them. the role of 1.export_symbol macros The functions or symbols defined within the Export_sym
The concept of macros is no stranger to me, but I never use macros, but I always use procedures (subroutines), because I think the macro will make the program longer, although it executes faster than the calling subroutine. So have been not too cold to the macro, until looking at the program of Lao Luo found a useful macro, it makes the program's writing more concise, intuitive, and beyond the concept of my
Basic Swift data type, swift data typeConstants and variables
Constants and variables are represented by a specific name, such as maximumNumberOfLoginAttempt or welcomeMessage. A constant points to a specific type of value, such as a number of 10 or the character "hello ". The value of a variable can be modified as needed, but the value of a constant cannot be changed twice.Declaration of constants and vari
Apple Swift programming language entry guide [Chinese Version], swift entry guide
Swift code language Tutorial: At the past WWDC2014, Apple released a new programming language Swift. It is reported that Swift inherits the features of C and Objective-C, and overcomes the comp
1. Macro Definitions without parameters:A macro definition is also called a macro substitution, a macro substitution, or a macro.Format:#define Identifier stringThe identifier is called a symbolic constant, also known as a "macro name."Preprocessing (precompilation) work is also called macro expansion: Replace the macro name with a string.The key to mastering the concept of "macro" is "change". Everything to change for the premise, do anything before the first change, accurate understanding befo
1. Basic useQ[A-Z] START Recording macroQ Stop Recording@[a-z] Using macros@@ 调用 The most recently used macro[Email protected] [A-z] multiple replay macros2. How macros are executedSerial mode: [email PROTECTED][A-Z] macro contains instructions to move to the next target line, and if an error occurs, the macro stops executingParallel mode:: Normal @[a-z] Executes the macro in parallel on each row of the hig
Introduction to Macros 1. C language before compiling the source program, will be a number of special pre-processing instructions (such as the previous use of the # include file contains instructions), a new source program (this process is called the compilation preprocessing), and then the usual compilationAll preprocessor directives start with # and end without semicolons2. Pre-processing instructions are divided into 3 types1> macro Definition2> co
Swift up and running--variables and constantsThe original study of the parkParking Learning Techniques VideoWhen we learn a language, whether it is written or spoken, or whether it is a foreign language or programming language, we will use the elements of the language we have mastered to understand the corresponding parts of the new language. Learning Swift , too, is a programming language that has common c
Swift tutorial 16-use Swift to call AFNetworking for network requests
How can I use Swift for network requests?
First, create a Swift project named SwiftDemo.
Then create a new Oc class in the project, and Xcode will ask you if you want to create a SwiftDemo-Bridging-Header.h file for bridging Oc and
Acer's 13-inch Swift 7 is the lightest, thinnest and most portable ultra-extreme in the market, coupled with a fan-less design, so it doesn't have much noise to run. At the same time, the Swift 7 design is also very stylish, and keyboard feel is also I experienced in all the superb level of the super, and the large touch pad is also very comfortable to use.
But that does not mean
Apple released the swift programming language in WWDC early in the morning, the grammar introduction I like very much, the market does not have the complete Chinese course, I downloaded the English original in the ibooks, now starts to attempt to translate swift. I will take time to adhere to the original translation, time is limited, not the place please advise.
New SWIFTER-QQ Group: 362232993, the lovers
At the request of the company, I studied the swift language and then gave you swift technical training, bought 4, 5 swift related books began to study.To introduce today, SWFT related terminal commands.1. First we build a swift folder on the desktop for storing. Swift source
the host with public IP is not exactly the same, for example, some are 1M, some 5M, bandwidth monitoring threshold is the bandwidth value *0.8. For example, 1M bandwidth, the monitoring threshold is 0.8M. (Note: After testing, in the Zabbix trigger this is 0.8M, will not issue an alarm, but the threshold is greater than 1M of the decimal can be alarm, suspect is less than 1M, Zabbix automatically change units to K caused. Then simply define the bandwidth monitoring thresholds by unifying the un
1.Block unused parameters warningSuch a macro was used in Ob_define.h in oceanbase to force the incoming data into void type. #ifndef UNUSED #define UNUSED (v) ((void) (v)) #endifSuch a macro is primarily intended to mask the "unused parameters" warning, as the following function uses two parameters. However, some compilers will report a warning when none is used: they feel that P and mod_id are unused.All of us use UNUSE macros so that two of
1 , variable-parameter functions A number of macros are defined in the header file for functions with variable parameters, as follows VA _list : This type declares a local state variable, assuming that the variable is named va VA _start : This macro initializes the state variable va to call before calling va_arg Span style= "Font-family:wenquanyi Micro Hei" > va_end Va_arg: This macro returns the value of the next pa
[Sass] Mixed macro Parameters--pass a parameter without a valueSass's mixed macros have a powerful function that can be used to pass parameters, then in the Sass there are several main parameters:A) pass a parameter with no valueIn a mixed macro, you can pass a parameter without any value, such as:@mixin border-radius ($radius) { -webkit-border-radius: $radius; Border-radius: $radius;}A parameter "$radius" with no value is defined in the mixed macro
is derived from cobject, this macro adds the access runtime function for an object class. Add the declare_dynamic macro to the Class header file, and then accessThis module is included in the. cpp file of the word class object. If delcare_dynamic and implement_dynamic macros are used as described, you canUse the runtime_class macro and cobject: iskindof function to determine the object class at runtime. If declare_dynamic is included in the class def
Multi-inheritance mode.Currently, ATL defines many classes to implement some common interfaces. These classes are often used as the base classes of components.Macros are widely used.
We have already talked about all the important macros, and the rest are simple macros.Next, let's start and end.
10. com_interface_entry_iid (IID, X)# Define com_interface_entry_iid (IID, x )/{ IID ,/Offsetofclass (x, _ commapclass ),/_ Atl_simplemapentry },
11. com_inte
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.