Add pxtrt::runtimeWarning() support; see https://github.com/Microsoft/pxt/issues/31
This commit is contained in:
parent
7637a98f07
commit
e0de55d689
@ -37,4 +37,11 @@ namespace control {
|
|||||||
panic(98)
|
panic(98)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display warning in the simulator.
|
||||||
|
*/
|
||||||
|
//% shim=pxtrt::runtimeWarning
|
||||||
|
export function runtimeWarning(message: string) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -316,4 +316,9 @@ namespace pxtrt {
|
|||||||
void* getGlobalsPtr() {
|
void* getGlobalsPtr() {
|
||||||
return globals;
|
return globals;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//%
|
||||||
|
void runtimeWarning(StringData *s) {
|
||||||
|
// noop for now
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user