On Wednesday, July 25, 2012 8:45:22 PM UTC+3, Dave Mandelin wrote: > SpiderMonkey officially has a C++ API now, so nullptr should be OK. There is > at least one wrinkle, which is that we need to support jsd for a while yet, > which is C. There are a few |NULL|s in jsapi.h that look like they are > exposed to C, so just a mass-replace wouldn't work, but there are a > couple of ways to get jsd to work and I don't think there's anything > too complicated.
nullptr is already defined to be 0L/0LL if unsupported. It should also be defined that way for C generally, although it's currently not (which is a bug in the patch that landed). Then it will work in C too, albeit without the type-safety, for anything that includes nscore.h. I guess we could define it to be NULL instead of 0L/0LL, but surely there was some reason we didn't do that for nsnull to begin with? _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform