Skip to content

Commit ef63660

Browse files
committed
Fix INFO/DEBUG/TRACE/WARN build
1 parent f8fe0ec commit ef63660

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

src/Interpreter/interpreter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Interpreter {
6666
//------------------------------------------------------
6767
// ReSharper disable once CppDFAConstantFunctionResult
6868
bool resolve_primitive(const char *symbol, Primitive *val) {
69-
debug("Resolve primitives (%d) for %s \n", ALL_PRIMITIVES, symbol);
69+
debug("Resolve primitive %s\n", symbol);
7070

7171
for (auto &primitive : primitives) {
7272
// printf("Checking %s = %s \n", symbol, primitive.name);

src/WARDuino.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,6 @@
2323
#define CALLSTACK_SIZE 0x100 // 4096
2424
#define BR_TABLE_SIZE 0x100 // 65536
2525

26-
#define I32 0x7f // -0x01
27-
#define I64 0x7e // -0x02
28-
#define F32 0x7d // -0x03
29-
#define F64 0x7c // -0x04
30-
31-
#define I32_8 0x7b // -0x05
32-
#define I32_16 0x7a // -0x06
33-
#define I64_8 0x79 // -0x07
34-
#define I64_16 0x78 // -0x08
35-
#define I64_32 0x77 // -0x09
36-
37-
#define I32_8_s 0x7b // -0x05
38-
#define I32_8_u 0x7a // -0x06
39-
#define I32_16_s 0x79 // -0x07
40-
#define I32_16_u 0x78 // -0x08
41-
#define I64_8_s 0x77 // -0x09
42-
#define I64_8_u 0x76 // -0x0a
43-
#define I64_16_s 0x75 // -0x0b
44-
#define I64_16_u 0x74 // -0x0c
45-
#define I64_32_s 0x73 // -0x0d
46-
#define I64_32_u 0x72 // -0x0e
47-
48-
#define ANYFUNC 0x70 // -0x10
49-
#define FUNC 0x60 // -0x20
50-
#define BLOCK 0x40 // -0x40
51-
5226
#ifdef ARDUINO
5327
#define EVENTS_SIZE 10
5428
#else

src/WARDuino/CallbackHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Callback::Callback(Module *m, std::string id, uint32_t tidx) {
195195

196196
void Callback::resolve_event(const Event &e) {
197197
dbg_trace("Callback(%s, %i): resolving Event(%s, \"%s\")\n", topic.c_str(),
198-
table_index, e.topic.c_str(), e.payload);
198+
table_index, e.topic.c_str(), e.payload.c_str());
199199

200200
// Copy topic and payload to linear memory
201201
uint32_t start = 10000; // TODO use reserved area in linear memory

src/WARDuino/internals.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33
#include <string>
44
#include <vector>
55

6+
#define I32 0x7f // -0x01
7+
#define I64 0x7e // -0x02
8+
#define F32 0x7d // -0x03
9+
#define F64 0x7c // -0x04
10+
11+
#define I32_8 0x7b // -0x05
12+
#define I32_16 0x7a // -0x06
13+
#define I64_8 0x79 // -0x07
14+
#define I64_16 0x78 // -0x08
15+
#define I64_32 0x77 // -0x09
16+
17+
#define I32_8_s 0x7b // -0x05
18+
#define I32_8_u 0x7a // -0x06
19+
#define I32_16_s 0x79 // -0x07
20+
#define I32_16_u 0x78 // -0x08
21+
#define I64_8_s 0x77 // -0x09
22+
#define I64_8_u 0x76 // -0x0a
23+
#define I64_16_s 0x75 // -0x0b
24+
#define I64_16_u 0x74 // -0x0c
25+
#define I64_32_s 0x73 // -0x0d
26+
#define I64_32_u 0x72 // -0x0e
27+
28+
#define ANYFUNC 0x70 // -0x10
29+
#define FUNC 0x60 // -0x20
30+
#define BLOCK 0x40 // -0x40
31+
632
// Structures
733
typedef struct Type {
834
uint8_t form;

0 commit comments

Comments
 (0)