this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

added 'useBinarySection' flag for wasm lang

nesbox d5ef398c c3218e24

+4 -7
+1
src/api/wasm.c
··· 1355 1355 1356 1356 .keywords = NULL, 1357 1357 .keywordsCount = 0, 1358 + .useBinarySection = true, 1358 1359 1359 1360 .demo = {DemoRom, sizeof DemoRom}, 1360 1361 .mark = {MarkRom, sizeof MarkRom, "wasmmark.tic"},
+1 -6
src/core/core.c
··· 460 460 461 461 data->start = data->counter(core->data->data); 462 462 463 - // !TODO: move it to wasm module? 464 - // TODO: does where to fetch code from need to be a config option so this isn't hard 465 - // coded for just a single language? perhaps change it later when we have a second script 466 - // engine that uses BINARY? 467 - if (strcmp(config->name,"wasm")==0) { 463 + if (config->useBinarySection) 468 464 code = tic->cart.binary.data; 469 - } 470 465 471 466 done = tic_init_vm(core, code, config); 472 467 }
+2 -1
src/script.h
··· 53 53 const char* singleComment; 54 54 const char* blockEnd; 55 55 56 - const char* const * keywords; 56 + const char* const *keywords; 57 57 s32 keywordsCount; 58 58 59 59 tic_lang_isalnum lang_isalnum; 60 60 bool useStructuredEdition; 61 + bool useBinarySection; 61 62 62 63 s32 api_keywordsCount; 63 64 const char** api_keywords;