Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa40bca

Browse files
Update stm32 env
1 parentf2069c0 commitfa40bca

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

‎compiler/native/env/stm32.js‎

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,26 @@ var STM32 =
6262
"globals":
6363
{
6464
"undefined":false,
65-
"eval":false,
66-
"__njs_typeof":false,
67-
"Nectar":false,
68-
"module":false,
69-
"__NJS_Object_Keys":false,
70-
"__NJS_Call_Function":false,
71-
"__NJS_Log_Console":false,
65+
"eval":false,
66+
"__njs_typeof":false,
67+
"console":false,
68+
"module":false,
69+
"require":false,
70+
"__Nectar_Log_Console":false,
71+
"__Nectar_InitVar":false,
72+
"__Nectar_Object_Keys":false,
73+
"__Nectar_Object_Stringify":false,
74+
"__Nectar_Call_Function":false,
75+
"__NJS_ARGS":false,
76+
"__NJS_ENV":false,
77+
"__NJS_PLATFORM":false,
78+
"__Nectar_typeof":false,
79+
"__Nectar_THIS":false,
80+
"__Nectar_instanceof":false,
81+
"JSON":false,
82+
"Object":false,
83+
"isNaN":false,
84+
"Array":false,
7285
}
7386
}
7487
}

‎compiler/native/squel/stm32.cpp‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,18 @@
2020
*
2121
*/
2222

23-
#define_USE_MATH_DEFINES
24-
#include<cmath>
25-
#include<string>
26-
#include<iostream>
27-
#include<functional>
28-
#include<string>
29-
#include<string.h>
30-
#include<cstring>
31-
#include<stdio.h>
32-
#include<stdlib.h>
33-
#include<sstream>
34-
#include<vector>
35-
#include<memory>
3623
#include"mbed.h"
37-
#include"njs.h"
38-
usingnamespaceNJS::Global;
24+
#include"nectar.cpp"
25+
26+
usingnamespaceNectarCore::Global;
27+
usingnamespaceNectarCore::Functions;
3928

4029
var __NJS_ENV ="stm32";
4130
var __NJS_PLATFORM ="{{__PLATFORM__}}";
4231

32+
#define__NJS_Create_Object()new NectarCore::Class::Object()
33+
#define__NJS_Create_Array(_arr)new NectarCore::Class::Array(_arr)
34+
#define__NJS_InitVar() NectarCore::VAR()
4335
{INCLUDE}
4436

4537
{DECL}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp