API: JS: VM: Setter
Аниса edited this page Oct 4, 2022
·
8 revisions
void result = vm -> setGlobal(std::string index);
void result = vm -> setNil();
void result = vm -> setBool(bool value);
void result = vm -> setString(std::string& value);
void result = vm -> setNumber(int value);
void result = vm -> setNumber(float value);
void result = vm -> setNumber(double value);
void result = vm -> createArray();
void result = vm -> createObject();
@Objective: Pops topmost and second topmost values and appends to the array
(located at specified index).
void result = vm -> setArray(int index = 1);
@Objective: Pops topmost and second topmost values and appends to the object
(located at specified index).
void result = vm -> setObject(int index = 1);
@Objective: Pops topmost value and appends to the array
(located at specified index) at provided index value.
void result = vm -> setArrayField(int value, int index = 1);
@Objective: Pops topmost value and appends to the object
(located at specified index) at provided index value.
void result = vm -> setObjectField(std::string value, int index = 1);
void result = vm -> createUserData(void* value);
void result = vm -> setUserData(void* value);
void result = vm -> setFunction(vital_exec& value);