changed objref to prevent bugs

This commit is contained in:
nilspolek 2024-01-28 10:30:39 +01:00
parent f3829559d4
commit 958c383f85
6 changed files with 4 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
njvm.o

Binary file not shown.

View File

@ -1,14 +1,12 @@
#ifndef STACKSLOT
#define STACKSLOT
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "objref.c"
#ifndef STACKSLOT
#define STACKSLOT
typedef int Object; typedef int Object;
typedef struct ObjRef{
unsigned int size;
unsigned char data[1];
} *ObjRef;
typedef struct { typedef struct {
bool isObjRef; bool isObjRef;