lua library

Everything else that doesn't fall into one of the other PB categories.
jorgejones
User
User
Posts: 32
Joined: Tue Mar 21, 2006 8:27 am

lua library

Post by jorgejones »

i refer from http://www.purebasic.fr/english/viewtop ... a&start=15
where i could find the includes for lua5.1

however when i try the example with the custom average function it returns 0.0 in both return values

anyone know how to solve this?

ps: is there any static lib of lua51 to avoid dll?
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Re: lua library

Post by SofT MANiAC »

jorgejones wrote:i refer from http://www.purebasic.fr/english/viewtop ... a&start=15
where i could find the includes for lua5.1

however when i try the example with the custom average function it returns 0.0 in both return values
Anyone knows how to solve this?

Code: Select all

ureBasic: Registering function 'average' to LUA...
ureBasic: Execute LUA file 'average.lua'...
     LUA: Calling registered PureBasic function 'average'
     LUA: Passing the return values back to PureBasic
ureBasic: Got back the value #1 (sum of arguments) from LUA    : -1.#IND00
ureBasic: Got back the value #2 (average of arguments) from LUA: -1.#IND00
POiNT.OF.PRESENCE group
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

Now I know - it's a floats issue. I'm solved this with pointers and PeekF()
POiNT.OF.PRESENCE group
Post Reply