progress
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
GroundString _GroundNewString(const char* in) {
|
||||
|
||||
size_t len = strlen(in);
|
||||
GroundSize len = strlen(in);
|
||||
|
||||
GroundString string = {
|
||||
.len = len,
|
||||
|
||||
Reference in New Issue
Block a user