Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

IDL structure in Lua

IDL structures are mapped to Lua tables. For example:

struct extended_point
{
  short x;
  float y;
  IFoo foo;
};
extended_point p;
p.x = 123;
p.y = 456;

is mapped as:

{x = 123, y = 456}