Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Coding conventions

Coding conventions

From: perterm <perterm_at_vce.de>
Date: Thu, 29 Aug 2002 09:18:23 +0200

Robert Hak wrote:
> avoid putting the if clause's on the same
> line:
>
> if(true) i++;
>
> should be
>
> if(true)
> i++;



Does this convention cover how braces should be used, too?
I usually would write

if (true) {
     i++;
}

But I notice that code I supplied was altered -> someone doesn't seem to
like single lines in braces.

Phil
Received on 2002-08-29

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy