+Release v0.1.4
+-----------
+Not released
+
+Additions:
+
+Removals:
+
+Changes:
+
+Bugfixes:
+
+
Release v0.1.3
-----------
-Unreleased
+19th June 2023
Additions:
- New syntax for declaring quoted code blocks.
const char* help_subcommand;
bh_arr(DefinedVariable) defined_variables;
- b32 debug_enabled;
+ b32 debug_session;
+ b32 debug_info_enabled;
b32 stack_trace_enabled;
i32 passthrough_argument_count;
wait_notify_available->type_node = (AstType *) &basic_type_bool;
symbol_builtin_introduce(p->scope, "Wait_Notify_Available", (AstNode *) wait_notify_available);
- AstNumLit* debug_mode = make_int_literal(a, context.options->debug_enabled);
+ AstNumLit* debug_mode = make_int_literal(a, context.options->debug_info_enabled);
debug_mode->type_node = (AstType *) &basic_type_bool;
symbol_builtin_introduce(p->scope, "Debug_Mode_Enabled", (AstNode *) debug_mode);
#include "wasm_emit.h"
#include "doc.h"
-#define VERSION "v0.1.2"
+#define VERSION "v0.1.3"
Context context;
.defined_variables = NULL,
- .debug_enabled = 0,
+ .debug_info_enabled = 0,
.passthrough_argument_count = 0,
.passthrough_argument_data = NULL,
options.symbol_info_file = argv[++i];
}
else if (!strcmp(argv[i], "--debug")) {
- options.debug_enabled = 1;
+ options.debug_session = 1;
+ options.debug_info_enabled = 1;
+ options.stack_trace_enabled = 1;
+ }
+ else if (!strcmp(argv[i], "--debug-info")) {
+ options.debug_info_enabled = 1;
options.stack_trace_enabled = 1;
}
else if (!strcmp(argv[i], "--stack-trace")) {
#ifdef ENABLE_RUN_WITH_WASMER
static b32 onyx_run_module(bh_buffer code_buffer) {
- onyx_run_initialize(context.options->debug_enabled);
+ onyx_run_initialize(context.options->debug_session);
if (context.options->verbose_output > 0)
bh_printf("Running program:\n");
// - REP
// - SET, REP 0
static void debug_emit_instruction(OnyxWasmModule *mod, OnyxToken *token) {
- if (!context.options->debug_enabled) {
+ if (!context.options->debug_info_enabled) {
return;
}
i32 leb_len;
u8* leb;
- if (instr->type == WI_NOP && !context.options->debug_enabled) return;
+ if (instr->type == WI_NOP && !context.options->debug_info_enabled) return;
if (instr->type & SIMD_INSTR_MASK) {
bh_buffer_write_byte(buff, 0xFD);
#ifdef ENABLE_DEBUG_INFO
static i32 output_ovm_debug_sections(OnyxWasmModule* module, bh_buffer* buff) {
- if (!module->debug_context || !context.options->debug_enabled) return 0;
+ if (!module->debug_context || !context.options->debug_info_enabled) return 0;
DebugContext *ctx = module->debug_context;
bh_buffer_append(buffer, WASM_VERSION, 4);
#ifdef ENABLE_DEBUG_INFO
- if (context.options->debug_enabled) {
+ if (context.options->debug_info_enabled) {
output_ovm_debug_sections(module, buffer);
}
#endif
// OR
- slice.fold(arr, 0, [it](it + acc)) |> println();
+ slice.fold(arr, 0, [it, acc](it + acc)) |> println();
"""
fold :: #match #local {}