1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-22 11:56:42 +00:00

add .len to unsolved array

This commit is contained in:
suchmememanyskill 2021-10-16 12:41:08 +02:00
parent c24e028960
commit e96ea63479

View file

@ -152,7 +152,12 @@ Variable_t createUnsolvedArrayVariable(Function_t* f) {
return var;
}
ClassFunction(retZero){
return newIntVariablePtr(0);
}
u8 anotherOneVarArg[] = { VARARGCOUNT };
u8 unsolvedArrayStr[] = { StringClass };
ClassFunction(createTypedArray) {
Vector_t v = { 0 };
@ -180,6 +185,7 @@ ClassFunction(createTypedArray) {
ClassFunctionTableEntry_t unsolvedArrayFunctions[] = {
{"+", createTypedArray, 1, anotherOneVarArg},
{"add", createTypedArray, 1, anotherOneVarArg},
{"len", retZero, 0, 0},
};
Variable_t getUnsolvedArrayMember(Variable_t* var, char* memberName) {