aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp.example
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-04-08 12:53:28 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-04-08 18:58:58 -0400
commit5329ec3089b4fb6b3023d7f6a44eabcc30e3c9dd (patch)
treed5b6a4be716a42dcabe2fc52706d808b61c54bd0 /main.cpp.example
parent308b5c8f36f517f5c62cd037124982a45e7b5fa1 (diff)
downloadlibrambutan-5329ec3089b4fb6b3023d7f6a44eabcc30e3c9dd.tar.gz
librambutan-5329ec3089b4fb6b3023d7f6a44eabcc30e3c9dd.zip
Trivial main.cpp.example cleanup.
Diffstat (limited to 'main.cpp.example')
-rw-r--r--main.cpp.example5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.cpp.example b/main.cpp.example
index 3ae114b..23d5540 100644
--- a/main.cpp.example
+++ b/main.cpp.example
@@ -28,15 +28,16 @@ void loop() {
// Force init to be called *first*, i.e. before static object allocation.
// Otherwise, statically allocated objects that need libmaple may fail.
-__attribute__(( constructor )) void premain() {
+__attribute__((constructor)) void premain() {
init();
}
int main(void) {
setup();
- while (1) {
+ while (true) {
loop();
}
+
return 0;
}