Implement tagged integers in C++ (#813)
* Start on the C++ conversion for tagged ints
This commit is contained in:
committed by
Sam El-Husseini
parent
01c7c0b588
commit
cad13785e2
@ -220,7 +220,7 @@ namespace control {
|
||||
//% help=control/in-background blockAllowMultiple=1 afterOnStart=true
|
||||
//% blockId="control_in_background" block="run in background" blockGap=8
|
||||
void inBackground(Action a) {
|
||||
runInBackground(a);
|
||||
runInParallel(a);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -290,8 +290,8 @@ namespace control {
|
||||
*/
|
||||
//% blockId="control_device_name" block="device name" weight=10 blockGap=8
|
||||
//% advanced=true
|
||||
StringData* deviceName() {
|
||||
return ManagedString(microbit_friendly_name()).leakData();
|
||||
String deviceName() {
|
||||
return mkString(microbit_friendly_name(), -1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user