Re: wrapping C code - my exercise in incompetence.
- Posted by ghaberek (admin) Jan 08, 2016
- 2394 views
jmduro said...
ghaberek said...
Although it's not perfect, since C_DWORDLONG (which is an 8 byte unsigned int) has the same value as C_DOUBLE (which is an 8-byte float).
In Euphoria 4.1, both have different values. Can't this be changed in 4.05 ?
You left out the part of my comment, which I believe is the answer you're seeking.
ghaberek said...
Edit: this will not be necessary on Euphoria 4.1, since it includes its own sizeof() function and native structure support.
You can wrap my custom sizeof() stuff in an ifdef EU4_0 block if you want to support both versions.
-Greg