Would appreciate some help porting Q3VM to D (mainly C macros and type conversions)

Mark Bauermeister bauermeistermarkusdev at gmail.com
Wed Oct 16 13:10:34 UTC 2024


On Wednesday, 16 October 2024 at 12:28:15 UTC, Mark Bauermeister 
wrote:
> On Tuesday, 15 October 2024 at 17:50:54 UTC, drug007 wrote:
>> On 15.10.2024 20:37, Mark Bauermeister wrote:
>>> On Tuesday, 15 October 2024 at 16:05:48 UTC, Lance Bachmeier 
>>> wrote:
>>>> [...]
>>> 
>>> Thanks! That helped me figure out some more macros.
>>> 
>>> Now if only I could figure out how to resolve "variable 
>>> `codeImage` cannot be read at compile time". That's the last 
>>> thing neither of those automation solutions can help me with.
>>
>> if you mean line 966 you need to replace `enum` by `const` or 
>> even `auto`. `enum` means the value should be available in 
>> compile time.
>
> Ah! Makes sense. I always forget about auto. Thanks!

I think I got every compiler complaint fixed now. However, upon 
launch the program immediately quits with "Error Program exited 
with code -11". I assume that's a segfault, right?

https://gist.github.com/markusbkk/442a571353a48c5377c503e7d02570fb


More information about the Digitalmars-d-learn mailing list