1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-09 21:51:48 +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; return var;
} }
ClassFunction(retZero){
return newIntVariablePtr(0);
}
u8 anotherOneVarArg[] = { VARARGCOUNT }; u8 anotherOneVarArg[] = { VARARGCOUNT };
u8 unsolvedArrayStr[] = { StringClass };
ClassFunction(createTypedArray) { ClassFunction(createTypedArray) {
Vector_t v = { 0 }; Vector_t v = { 0 };
@ -180,6 +185,7 @@ ClassFunction(createTypedArray) {
ClassFunctionTableEntry_t unsolvedArrayFunctions[] = { ClassFunctionTableEntry_t unsolvedArrayFunctions[] = {
{"+", createTypedArray, 1, anotherOneVarArg}, {"+", createTypedArray, 1, anotherOneVarArg},
{"add", createTypedArray, 1, anotherOneVarArg}, {"add", createTypedArray, 1, anotherOneVarArg},
{"len", retZero, 0, 0},
}; };
Variable_t getUnsolvedArrayMember(Variable_t* var, char* memberName) { Variable_t getUnsolvedArrayMember(Variable_t* var, char* memberName) {