However, if there is code inside the conditional the nested macros should not be indented: #ifndef HAVE_SQLITEstaticvoidinc(int*counter){*counter++;}#define INC() inc(&counter)#endif Conditional compilation should not affect indentation of regular code: #ifndef _WINDOWSintget_cpustat(AGENT_RESUL...
This paper demonstrates simple source code changes that can result in substantial performance enhancements using modern optimizing compilers on high-end embedded processors. Why is performance necessary? After all, the capabilities of modern microprocessors dwarf the capabilities of 1980-era supercomputers. ...
In this guide I shall try to show how a little intelligence can be applied to the complex question of code readability. What I present is not a simple-minded list of ‘thou shalt nots’; it is more a set of ideas for the construction and setting out of a program. The ideas are base...
C++ Coding Guidelines SUN Code Conventions for Java 以下是一些介绍编码、编码规范的书籍: C++编码规范,陈世忠,人民邮电出版社,2002 高质量程序设计指南:C++/C语言,林锐等,电子工业出版社,2003 注:以下只是根据课题组已有的经验给出的总结,并非对所有场景均适用。 对于高质量的工程,一般会做到: 代码简洁精炼,美观...
1.networkcode() 2.{ 3.switch(line) 4.{ 5.caseTHING1: 6.{ 7.doit1(); 8.}break; 9.caseTHING2: 10.{ 11.if(x==STUFF) 12.{ 13.do_first_stuff(); 14.if(y==OTHER_STUFF) 15.break; 16.do_later_stuff(); 17.}/*代码的意图是跳转到这里...
forked fromsumlunmao/Objective-C-Coding-Guidelines NotificationsYou must be signed in to change notification settings Fork0 Star0 master BranchesTags Code 707724-ed9730ab858c08a7.png README.md Repository files navigation README 搜狐视频iOS团队 Objective-C 编码规范 ...
Objective-C-Coding-Guidelines-In-Chinese Objective-C编码规范,内容来自苹果、谷歌的文档翻译,自己的编码经验和对其它资料的总结。 转载请注明出处。 ##概要 Objective-C是一门面向对象的动态编程语言,主要用于编写iOS和Mac应用程序。关于Objective-C的编码规范,苹果和谷歌都已经有很好的总结: ...
|22ndInternationalObfuscatedCCodeContestOfficialGuidelines |Copyright(C)2006-2013LeonidA.Broukhis,SimonCooper,LandonCurtNoll. AllRightsReserved.Permissionforpersonal,educationornon-profituseis grantedprovidedthisthiscopyrightandnoticeareincludedinitsentirety
• C++ Coding Guidelines • SUN Code Conventions for Java 以下是一些介绍编码、编码规范的书籍: • C++编码规范,陈世忠,人民邮电出版社,2002 • 高质量程序设计指南:C++/C语言,林锐等,电子工业出版社,2003 注:以下只是根据课题组已有的经验给出的总结,并非对所有场景均适用。
Guidelines for the Use of the C Language in Vehicle Based Software C++ Coding Guidelines SUN Code Conventions for Java 以下是一些介绍编码、编码规范的书籍: C++编码规范,陈世忠,人民邮电出版社,2002 高质量程序设计指南:C++/C语言,林锐等,电子工业出版社,2003 ...