This commit is contained in:
retoor 2025-07-29 15:14:47 +02:00
parent 141a4562fd
commit e01148ba37
3 changed files with 86 additions and 11810 deletions

5
main.c
View File

@ -13,6 +13,7 @@
#include "wren.h"
#include "requests_backend.c"
#include "socket_backend.c"
#include "string_backend.c" // Include the new string backend
// --- Global flag to control the main loop ---
static volatile bool g_mainFiberIsDone = false;
@ -91,6 +92,10 @@ WrenForeignMethodFn combinedBindForeignMethod(WrenVM* vm, const char* module, co
return bindForeignMethod(vm, module, className, isStatic, signature);
}
if (strcmp(className, "String") == 0) {
return bindStringForeignMethod(vm, module, className, isStatic, signature);
}
// Handle host-specific methods
if (strcmp(module, "main") == 0 && strcmp(className, "Host") == 0 && isStatic) {
if (strcmp(signature, "signalDone()") == 0) return hostSignalDone;

File diff suppressed because it is too large Load Diff

BIN
wren

Binary file not shown.