Gabriel Posted November 30, 2011 Share Posted November 30, 2011 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 Quote Link to comment Share on other sites More sharing options...
Rick Posted November 30, 2011 Share Posted November 30, 2011 It should be the same as LuaJIT. Josh just stores it as char* I think but casting it should work. Quote Link to comment Share on other sites More sharing options...
Gabriel Posted December 1, 2011 Author Share Posted December 1, 2011 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.