Issue 9497 - ddoc: add support for handling undefined macros

Fresh approach replacing https://github.com/D-Programming-Language/dmd/pull/1653
Instead of the comment, why not do it this way?
```
static const char undef[] = "DDOC_UNDEFINED_MACRO";
m = search((const utf8_t *)undef, sizeof(undef) - 1);