Jump to content

Guppy's Blog

  • entry
    1
  • comments
    0
  • views
    4,468

Entries in this blog

Pushing complex lua tables from C++

While having a small set of fairly simple tables you could properly get away with using   Leadwerks::Interpreter::NewTable(); size_t top=Leadwerks::Interpreter::GetStackSize(); Leadwerks::Interpreter::PushString("Key1"); Leadwerks::Interpreter::PushString("Value1"); Leadwerks::Interpreter::SetTable(top); Leadwerks::Interpreter::PushString("Key2"); Leadwerks::Interpreter::PushInt(5); Leadwerks::Interpreter::SetTable(top); (ect)   But it's really rather bothersome and hard to read an

Guppy

Guppy

×
×
  • Create New...