API: Lua: VM: Pusher - ov-studio/Vital.sandbox GitHub Wiki

━ Methods

━ vm::pushBool()

@Objective: Pushes provided bool value to the table (located at topmost index of the stack).
ℹ️ (topmost value, i.e value at stack index -1).insert(value)
void result = vm -> pushBool(bool value);

━ vm::pushString()

@Objective: Pushes provided string value to the table (located at topmost index of the stack).
ℹ️ (topmost value, i.e value at stack index -1).insert(value)
void result = vm -> pushString(std::string& value);

━ vm::pushNumber()

@Objective: Pushes provided number value to the table (located at topmost index of the stack).
ℹ️ (topmost value, i.e value at stack index -1).insert(value)
void result = vm -> pushNumber(int value);
void result = vm -> pushNumber(float value);
void result = vm -> pushNumber(double value);

━ vm::pushFunction()

@Objective: Pushes provided function to the table (located at topmost index of the stack).
ℹ️ (topmost value, i.e value at stack index -1).insert(exec)
void result = vm -> pushFunction(vital_exec& exec);