1 comment:
You can put a
#if !defined(__PRE_RAM__)
dead_code("Cannot strdup() in pre-RAM environments")
#endif
here, then you'll guarantee with a link-time assertion that calls to this will get optimized out. (I guess the undefined reference to malloc would do the same, but this makes the intent more explicit.)
To view, visit change 30844. To unsubscribe, or for help writing mail filters, visit settings.