28 lines
417 B
C
28 lines
417 B
C
//
|
|
// Created by Nils on 03.12.2023
|
|
//
|
|
#ifndef SDA
|
|
#define SDA
|
|
#include <stdio.h>
|
|
#include "stackslot.c"
|
|
struct sda {
|
|
int *size;
|
|
ObjRef *sda;
|
|
};
|
|
|
|
ObjRef getSDA(int i, struct sda s) {
|
|
return s.sda[i];
|
|
}
|
|
|
|
void setSDA(int point, ObjRef val, struct sda s) {
|
|
s.sda[point] = val;
|
|
}
|
|
|
|
void printSDA(struct sda s) {
|
|
for (int i = 0; i < *s.size; i++) {
|
|
printf("%i\n", getSDA(i, s));
|
|
}
|
|
}
|
|
|
|
#endif
|