Retoor software development Projects Research SearchXNG
Register Sign In

4 lines
78 B
C
Raw Normal View History

feat: add 'a' format specifier and null-value support to wrenCall, plus tests for strings with null bytes Add a new 'a' format specifier to wrenCall that accepts an explicit byte array and length, enabling callers to pass strings containing null bytes without truncation. Also allow passing NULL for 'v' specifier arguments to produce a Wren NULL value. Rename setForeignCallbacks to setTestCallbacks for clarity. Extend the test suite with a new call.c test file that exercises all argument types including 'a' and 'v' with NULL, and add returnString/returnBytes foreign methods to verify wrenReturnString handles both null-terminated and explicit-length strings correctly.
2015-09-24 17:02:31 +02:00
#include "wren.h"
WrenForeignMethodFn callBindMethod(const char* signature);
Reference in New Issue Copy Permalink
b19d85f618
wren/test/api/call.h
Response time: 24ms
Mail Licenses API