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.)
Embedding LUA in PureBasic!?
Re: Embedding LUA in PureBasic!?
How can i parse complex returns?
For example:
Ideally i want to put it in a PB structure, but can anyone show me how to do that?
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