Jump to content

Recommended Posts

Posted

Hello,

 

I have a question for the developer of Leadwerk, what version should I use lua to enjoy the functionality of leadwerks?

in the structure lstate.h lua_State is not the same in Lua and LuaJit

 

baseCcalls unsigned short / * nested C calls RESUMING When coroutine * /

 

could you in your reponce add the link where you have to download Lua for "LE2.5" ;-)

 

thank you

 

Gabriel

Posted

Well, yes he have converted (Byte *) and this is what I have a problem. If an engine pass structure address that I have to treat it is better for me to use the correct structure. otherwise I could have anything like information.

 

example: for LuaJit

Byte * ptr = (lua_State *) ptr 25; IS lu_byte hookmask;

by cons to Lua:

Byte * ptr = (lua_State *) ptr 25; IS lu_byte baseCcalls;

 

because-as in "luaJit" a field of type byte is inserted in this structure.

 

I also need if the structure is alligned to 1 byte or 4 bytes ...

otherwise I am absolutely sure of side effects as viollation access or blue screen.

 

C or C++ is not a interpreter and the compiler has a tendency to do make what the programmer told to do ;-) with without reflection like politicians lol

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...