Noob ImportC questions
John C.
example at example.com
Thu Feb 27 08:10:04 UTC 2025
On Wednesday, 26 February 2025 at 18:53:40 UTC, Kapendev wrote:
> On Wednesday, 26 February 2025 at 17:00:48 UTC, John C. wrote:
>> Error (with both commands above, same result):
>> ```
>> main.d(8): Error: undefined identifier `RAYWHITE`
>> main.d(9): Error: undefined identifier `LIGHTGRAY`
>> ```
>
>
> Both RAYWHITE and LIGHTGRAY are defines and ImportC was not
> able to parse them, so they don't exist.
> No idea about the first question.
Yes, when I added new test simple value macro ("#define TESTM
123"), main.d was able to use it. So, this problem is connected
to ImportC parsing capabilities? If it is, would removing some
"hard to parse" constructs in header file help this situation?
More information about the Digitalmars-d-learn
mailing list