Renaming stuff in the simulator

This commit is contained in:
Michal Moskal
2016-04-07 12:52:02 -07:00
parent 5d3471b3b2
commit ce53d5c386
10 changed files with 35 additions and 35 deletions

View File

@ -2,7 +2,7 @@ namespace i2c_fram {
const devaddr = 0x50;
const memend = 0x7fff;
//% shim=ksrt::panic
//% shim=pxtrt::panic
function panic(code: number) { }
function die() { panic(142) }

View File

@ -3,7 +3,7 @@
// Do not use anything besides basic.pause, control.inBackground, console.log
//
//% shim=ksrt::panic
//% shim=pxtrt::panic
function panic(code2: number): void { }
function msg(s: string): void {

View File

@ -1,7 +1,7 @@
#include "kindscript.h"
#include "pxt.h"
#include "MESEvents.h"
using namespace kindscript;
using namespace pxt;
enum class MesCameraEvent {
//% block="take photo"

View File

@ -1,6 +1,6 @@
#include "kindscript.h"
#include "pxt.h"
using namespace kindscript;
using namespace pxt;
//% color=270 weight=34
namespace radio {
@ -15,7 +15,7 @@ namespace radio {
int r = uBit.radio.enable();
if (r != MICROBIT_OK) return r;
if (!radioEnabled) {
uBit.radio.setGroup(kindscript::programHash());
uBit.radio.setGroup(pxt::programHash());
radioEnabled = true;
}
return r;

View File

@ -154,7 +154,7 @@ namespace Array_ {
}
// Import some stuff directly
namespace kindscript {
namespace pxt {
//%
void registerWithDal(int id, int event, Action a);
//%
@ -181,7 +181,7 @@ namespace kindscript {
void *ptrOfLiteral(int offset);
}
namespace ksrt {
namespace pxtrt {
//%
uint32_t ldloc(RefLocal *r) {
return r->v;

View File

@ -1,7 +1,7 @@
#include "kindscript.h"
#include "pxt.h"
#include "ManagedBuffer.h"
using namespace kindscript;
using namespace pxt;
MicroBitPin *getPin(int id);
typedef ImageData* Image;
typedef BufferData* Buffer;