Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: stackheap.h
- Revision:
- 4:5d1359a283bc
- Parent:
- 1:6b7f447ca868
diff -r aefd12a1f1c5 -r 5d1359a283bc stackheap.h
--- a/stackheap.h Fri Nov 14 15:25:20 2008 +0000
+++ b/stackheap.h Thu Nov 27 16:23:24 2008 +0000
@@ -73,7 +73,11 @@
inline int stack_limit() {
+#ifdef __GNUC__
+ return (unsigned)__builtin_frame_address(0);
+#else
return __current_sp();
+#endif
}
inline int stack_size() {
