Add pxtrt::runtimeWarning() support; see https://github.com/Microsoft/pxt/issues/31

This commit is contained in:
Michal Moskal 2016-09-02 17:29:40 +01:00
parent 7637a98f07
commit e0de55d689
2 changed files with 12 additions and 0 deletions

View File

@ -37,4 +37,11 @@ namespace control {
panic(98) panic(98)
} }
} }
/**
* Display warning in the simulator.
*/
//% shim=pxtrt::runtimeWarning
export function runtimeWarning(message: string) {
}
} }

View File

@ -316,4 +316,9 @@ namespace pxtrt {
void* getGlobalsPtr() { void* getGlobalsPtr() {
return globals; return globals;
} }
//%
void runtimeWarning(StringData *s) {
// noop for now
}
} }