www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - importC | Using D with Raylib directly | No bindings | [video]

reply Ki Rill <rill.ki yahoo.com> writes:
Testing out importC with Raylib. Here is the 
[link](https://www.youtube.com/watch?v=1BrvRkZdGOA).
Aug 06
next sibling parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
On 8/6/22 9:09 PM, Ki Rill wrote:
 Testing out importC with Raylib. Here is the 
 [link](https://www.youtube.com/watch?v=1BrvRkZdGOA).
Really nice demonstration! I lament the fact that you have to declare C variables just to get access to the #define colors. Also, IIRC, in the latest master of DMD, there is an attempt to run the system preprocessor automatically. But I'm not sure of the state of it, or if it's in the latest release (which we are having trouble publishing still). -Steve
Aug 07
parent reply Ki Rill <rill.ki yahoo.com> writes:
On Sunday, 7 August 2022 at 13:53:12 UTC, Steven Schveighoffer 
wrote:
 Also, IIRC, in the latest master of DMD, there is an attempt to 
 run the system preprocessor automatically. But I'm not sure of 
 the state of it, or if it's in the latest release (which we are 
 having trouble publishing still).
I've read about this somewhere. It would be nice to have the preprocessor run automatically and, maybe in the future, add those #defines for the user. But in overall, D has grown and the ecosystem is rapidly evolving. I can see it. This is the best thing that's happening right now. And the Dconf talks were awesome; so many interesting and useful insights.
Aug 07
parent reply Petar Kirov [ZombineDev] <petar.p.kirov gmail.com> writes:
On Monday, 8 August 2022 at 05:39:29 UTC, Ki Rill wrote:
 On Sunday, 7 August 2022 at 13:53:12 UTC, Steven Schveighoffer 
 wrote:
 Also, IIRC, in the latest master of DMD, there is an attempt 
 to run the system preprocessor automatically. But I'm not sure 
 of the state of it, or if it's in the latest release (which we 
 are having trouble publishing still).
I've read about this somewhere. It would be nice to have the preprocessor run automatically and, maybe in the future, add those #defines for the user.
I think this was recently documented here: https://dlang.org/spec/importc.html#preprocessor Give it a read, try it out and let us know how it works out!
Aug 08
next sibling parent reply jmh530 <john.michael.hall gmail.com> writes:
On Monday, 8 August 2022 at 13:01:46 UTC, Petar Kirov 
[ZombineDev] wrote:
 On Monday, 8 August 2022 at 05:39:29 UTC, Ki Rill wrote:
 On Sunday, 7 August 2022 at 13:53:12 UTC, Steven Schveighoffer 
 wrote:
 Also, IIRC, in the latest master of DMD, there is an attempt 
 to run the system preprocessor automatically. But I'm not 
 sure of the state of it, or if it's in the latest release 
 (which we are having trouble publishing still).
I've read about this somewhere. It would be nice to have the preprocessor run automatically and, maybe in the future, add those #defines for the user.
I think this was recently documented here: https://dlang.org/spec/importc.html#preprocessor Give it a read, try it out and let us know how it works out!
It says: "Otherwise the cpp preprocessor will be used." You mean the default system cpp preprocessor, correct? I wouldn't be surprised if someone asks for the ability to set their own defaults.
Aug 08
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 8/8/22 07:54, jmh530 wrote:

 It says:
 "Otherwise the cpp preprocessor will be used."

 You mean the default system cpp preprocessor, correct?
I think it means the 'cpp' program that exists on (almost?) all Linux systems. Ali
Aug 12
prev sibling parent bachmeier <no spam.net> writes:
On Monday, 8 August 2022 at 13:01:46 UTC, Petar Kirov 
[ZombineDev] wrote:

 I think this was recently documented here: 
 https://dlang.org/spec/importc.html#preprocessor

 Give it a read, try it out and let us know how it works out!
Happy to see that. I'll be giving it a test.
Aug 08
prev sibling parent Martin Tschierschke <mt smartdolphin.de> writes:
On Sunday, 7 August 2022 at 01:09:58 UTC, Ki Rill wrote:
 Testing out importC with Raylib. Here is the 
 [link](https://www.youtube.com/watch?v=1BrvRkZdGOA).
Very cool and important to show how simple this works. **Thank you!**
Aug 15