Skip to content

API: Lua: VM: Pusher

Аниса edited this page Oct 4, 2022 · 4 revisions

━ 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);
Clone this wiki locally