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

Mark Bauermeister bauermeistermarkusdev at gmail.com
Wed Oct 16 12:28:15 UTC 2024


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!


More information about the Digitalmars-d-learn mailing list