Embedding LUA in PureBasic!?

Everything else that doesn't fall into one of the other PB categories.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Embedding LUA in PureBasic!?

Post by jack »

that's a good point DoubleDutch, I personally would compile to dll using msys2 and making an import lib using polib, that way there would be no need for runtime distribution dll's other than the lua dll.
you find msys2 at https://sourceforge.net/projects/msys2/
to make the 64-bit import-lib using polib do polib yourdll.dll /machine:x64 /out:yourlib.lib (polib is included in PB for Windows.)
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: Embedding LUA in PureBasic!?

Post by deseven »

How can i parse complex returns?

For example:

Code: Select all

function example() return {
  string  = _('example'),
  data    = {
    { 
      name         = 'John Doe',
      email        = 'john@example.com',
      location     = { 1.0, -1.0 }
    },
    { 
      name         = 'Jane Doe',
      email        = 'jane@example.com',
      location     = { -1.0, 1.0 }
    }
  }
} end
Ideally i want to put it in a PB structure, but can anyone show me how to do that?
Post Reply