Now, HTML5 and CSS3 are waiting for you, let's see if they can really bring our design to the next level. Web designers can use HTML4 and CSS2.1 to do something cool. We can complete the logical structure of the document and create a website with
Reproduced from: C language in Do...while (0) of the magical, thanks for sharing.In the Linux kernel code, often see Do...while (0) of the macro, Do...while (0) has a lot of role, the following list of several:1. Avoid goto statements:Typically, if
Document directory
Yesterday, the project needed to convert a batch of WAV Files into MP3 files to reduce the size of the installation package.
First, I wrote a tool myself. The waveform control of our company had some problems with the
1. do {} while (0) in the source code)
Write a code today:
if(!CCScene::init()){return false;}Later I went to the source code:
bool CCScene::init(){ bool bRet = false; do { CCDirector * pDirector; CC_BREAK_IF( !
# Define macro_name (para) do {macro content} while (0) format summarizes the following reasons: 1. Empty macro definition avoids warning:
# Define Foo () do {} while (0) 2, which has an independent block that can be used for variable definition and
In C ++, there are three types of loop statements: For, while, and do... while, but in general applications for loop, we may use for and while to have more, do... while is relatively not valued.However, when I recently read the code of our project,
Why do I encounter many # defines... do {...} while (0) in the kernel )?
There are several reasons:
· Empty statements will be warned during compilation, so it is necessary to use # define Foo do {} while (0 ).
· This is done to define local
1.autoCommit (), commit (), rollback ()function autocommit ($onoff =false)Specifies whether the transaction is committed automatically. Some back-end databases are not supported.function commit ()Commit the current transactionfunction rollback
Why are there so many do {} while (0) Macros in the kernel? I don't understand it at first. It doesn't seem to work. But after understanding it, you will know its benefits. The benefit lies in the macros of multiple statements.
# Define Foo (x)
Attack by handling program errors (below)
Created on: 2000-06-03Article attributes: ReprintedSource: Red PowerArticle submitted: xundi (xundi_at_xfocus.org)
Repost from the Red Power-see our connectionAttack by handling program errors (below)
3 land
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.