Ivana Ivanovska
093700b274
Add support for boolean literals in macros (#6418)
Adding support for macros with boolean literals.
Demo:
```c++
// main.carbon
library "Main";
import Core library "io";
import Cpp inline '''
#define M_TRUE true
''';
fn Run() -> i32 {
let a: bool = Cpp.M_TRUE;
if (a) {
Core.Print(1);
} else {
Core.Print(0);
}
return 0;
}
```
```
$ bazel-bin/toolchain/carbon compile main.carbon
$ bazel-bin/toolchain/carbon link main.o \--output=demo_carbon
$ ./demo_carbon
1
```
Part of #6303
2025-11-24 10:40:57 +00:00
..
2025-11-21 16:45:38 +00:00
2025-11-14 00:40:26 +00:00
2025-11-21 16:45:38 +00:00
2025-10-06 07:36:28 +00:00
2025-11-06 08:45:28 +00:00
2025-11-14 00:40:26 +00:00
2025-11-14 23:26:43 +00:00
2025-11-06 08:45:28 +00:00
2025-08-05 23:03:32 +00:00
2025-11-05 17:21:41 +00:00
2025-07-18 16:26:12 +00:00
2025-09-19 20:22:47 +00:00
2025-08-01 01:24:31 +00:00
2025-10-28 17:17:38 +00:00
2025-11-06 08:45:28 +00:00
2025-07-22 21:29:09 +00:00
2025-06-18 20:45:46 +00:00
2025-10-06 07:36:28 +00:00
2025-11-24 10:40:57 +00:00
2025-06-18 20:45:46 +00:00
2025-11-14 00:40:26 +00:00
2025-11-14 00:40:26 +00:00
2025-10-23 01:46:24 +00:00
2025-11-19 20:40:17 +00:00
2025-11-19 20:40:17 +00:00