www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - importC error: can not find the #define ERR_INVALID -1

reply Dakota <dakota gmail.com> writes:
```c
#define ERR_SUCCESS 0
#define ERR_INVALID -1   // invalid argument
```

If the number >=0, it work.  < 0 will not work.

DMD64 D Compiler v2.110.0-beta.1
Aug 02
parent Steven Schveighoffer <schveiguy gmail.com> writes:
On Saturday, 3 August 2024 at 05:07:55 UTC, Dakota wrote:
 ```c
 #define ERR_SUCCESS 0
 #define ERR_INVALID -1   // invalid argument
 ```

 If the number >=0, it work.  < 0 will not work.

 DMD64 D Compiler v2.110.0-beta.1
https://issues.dlang.org/show_bug.cgi?id=24639 -Steve
Aug 02