This commit is contained in:
2026-06-20 19:45:52 +10:00
parent b4e481ed9c
commit f97cec4567
17 changed files with 92 additions and 51 deletions

View File

@@ -1,6 +1,6 @@
#include "../../include/ground.h"
GroundList _GroundNewList(size_t len, GroundValue* contents) {
GroundList _GroundNewList(GroundSize len, GroundValue* contents) {
GroundList list = {
.capacity = 16,
.count = 0,

View File

@@ -2,7 +2,7 @@
#include <ffi.h>
#include <stdarg.h>
GroundFunction _GroundNewNativeFunction(void* function, size_t argc, ...) {
GroundFunction _GroundNewNativeFunction(void* function, GroundSize argc, ...) {
GroundState state = {NULL, NULL, NULL};
GroundFunction gf = Ground.New.Function(&state);
@@ -13,7 +13,7 @@ GroundFunction _GroundNewNativeFunction(void* function, size_t argc, ...) {
va_list args;
va_start(args, argc);
for (size_t i = 0; i < argc; i++) {
for (GroundSize i = 0; i < argc; i++) {
GroundType type = va_arg(args, GroundType);
if (type.type == GroundType_Struct) {
Ground.Log.Error("Cannot pass struct to native function in Ground.New.NativeFunction()");

View File

@@ -2,7 +2,7 @@
GroundString _GroundNewString(const char* in) {
size_t len = strlen(in);
GroundSize len = strlen(in);
GroundString string = {
.len = len,