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

2024-10-15 Thread Mark Bauermeister via Digitalmars-d-learn
On Tuesday, 15 October 2024 at 12:27:42 UTC, barbosso wrote: Are you heard of https://github.com/dkorpel/ctod ? I actually used CTOD for part of the translation but it wouldn't translate the macros correctly. It turned them into weird string mixins.

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

2024-10-15 Thread Mark Bauermeister via Digitalmars-d-learn
For the past 2 days I've been trying to port the Q3VM (https://github.com/jnz/q3vm) to D. While most of the code is converted, it's somewhat riddled with cast statements and I'm still having trouble getting it to compile without errors. My conversion can be found here: https://gist.github.com

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

2024-10-15 Thread Mark Bauermeister via Digitalmars-d-learn
On Tuesday, 15 October 2024 at 16:05:48 UTC, Lance Bachmeier wrote: On Tuesday, 15 October 2024 at 13:30:03 UTC, Mark Bauermeister wrote: On Tuesday, 15 October 2024 at 12:27:42 UTC, barbosso wrote: Are you heard of https://github.com/dkorpel/ctod ? I actually used CTOD for part of the transl

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

2024-10-16 Thread Mark Bauermeister via Digitalmars-d-learn
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 `co

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

2024-10-16 Thread Mark Bauermeister via Digitalmars-d-learn
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 m

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

2024-10-18 Thread Mark Bauermeister via Digitalmars-d-learn
On Thursday, 17 October 2024 at 02:47:03 UTC, Mai Lapyst wrote: On Wednesday, 16 October 2024 at 13:10:34 UTC, Mark Bauermeister wrote: 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