[Lldb-commits] [PATCH] [Python] Allow PyLong & PyBool values in integer list typemaps.

Enrico Granata granata.enrico at gmail.com
Tue Jun 30 11:48:46 PDT 2015


At a glance, it looks like you might be able to use PyLong_AsUnsignedLongLong() also for bool values.
If so, that might be a nicer code flow instead of the exact pointer equality check

if (PyLong || PyBool) { PyLong_AsUnsigned.... }

But if that actually doesn't work, looks good to me


http://reviews.llvm.org/D10821

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list