/* Generated by gwbasic-compile */ #include "gwrt.h" #include #include #include #include static float var_N_sng = 0; int main(int argc, char **argv) { (void)argc; (void)argv; int _gw_loop, _gw_return; gwrt_init(); static program_line_t _dummy_line = {0}; _err_entry: if (setjmp(gw_run_jmp)) { if (gw.on_error_line) { int _tgt = gw.on_error_line; gw.in_error_handler = true; if (_tgt == 10) goto L_10; if (_tgt == 20) goto L_20; if (_tgt == 30) goto L_30; if (_tgt == 40) goto L_40; if (_tgt == 50) goto L_50; if (_tgt == 60) goto L_60; } gwrt_shutdown(); return 1; } if (setjmp(gw_error_jmp)) { gwrt_shutdown(); return 1; } L_10: gw.cur_line_num = 10; L_20: gwrt_check_line(20); { static const uint8_t _ds[] = {144,32,34,78,34,59,204,25,41,59,34,78,32,83,81,85,65,82,69,68,34,0}; gw.text_ptr = (uint8_t *)_ds; gw_exec_stmt(); } L_30: gwrt_check_line(30); { int _entry_type = gw.def_type[13]; float _initial = (float)(1); float _limit = (float)(8); float _step = 1; if (0 || gw.def_type[13] != _entry_type) { gw.cur_line_num = 50; gw_error(ERR_NF); } var_N_sng = _initial; if (!gwrt_for_push(&var_N_sng, 4, _limit, _step, 0)) { gw.cur_line_num = 50; goto for_exit_50_3; } } for_body_0: ; L_40: gwrt_check_line(40); { gw_var_find_or_create("N", 4)->val = (gw_value_t){.type=4,.fval=var_N_sng}; static const uint8_t _ds[] = {144,32,78,59,204,25,41,59,78,233,78,0}; gw.text_ptr = (uint8_t *)_ds; gw_exec_stmt(); } L_50: gwrt_check_line(50); _gw_loop = gwrt_for_next(&var_N_sng); if (_gw_loop >= 0) goto _gw_for_dispatch; for_exit_50_3: ; L_60: gwrt_check_line(60); gwrt_shutdown(); return 0; gwrt_shutdown(); return 0; _gw_for_dispatch: switch (_gw_loop) { case 0: goto for_body_0; } gw_error(ERR_NF); return 1; _gw_return_dispatch: switch (_gw_return) { } gw_error(ERR_RG); return 1; }