Commit graph

7 commits

Author SHA1 Message Date
Joe Finney
a61bd49620 microbit: BUGFIX: Memory leak in ManagedType.h
Corrected corner case memory leak. Instances of ManagedType<> created using the default
constructor would create a reference counter by default, with a value of 0. However, if
destructor or copy-assigned in this state, this reference count would not be destroyed,
resulting in a 4 byte leak on the heap for each occurence.
2015-09-17 23:16:40 +01:00
Joe Finney
cbaec38d06 Merge branch 'gcc' 2015-09-02 18:40:26 +01:00
Joe Finney
6470b71b1d microbit: Conditional compilation on MicroBitConfig
All options defined in MicroBitConfig are now set IFF they already do not have a value.
This allows external configuration of these options much more cleanly. Additional macros
also defined to provide clean implementation for boolean configuration switches.

Also some minor bugfixes:

  - Correction of typo of "Microbit.h" => "MicroBit.h"
  - Fixed heap corruption bug on gcc as a result of a debug printf in an unsafe context.
2015-09-02 12:42:24 +01:00
Jonathan Protzenko
8bf318e2b4 By-adress comparison operators for ManagedType. 2015-08-24 16:12:18 -07:00
Jonathan Protzenko
aabd954d67 Also define a non-operator version of () for style purposes. 2015-08-24 11:17:38 -07:00
Jonathan Protzenko
c4656ca855 Add a missing operator to ManagedType. 2015-08-18 17:49:08 -07:00
James Devine
538e1c48bd microbit-dal: Initial Commit
This is the first commit of the microbit-dal on GitHub.
This repository contains the runtime, which is a light
weight operating system developed by Lancaster University.
2015-08-12 11:53:41 +01:00