* DatumGetBool * Returns boolean value of a datum. * * Note: any nonzero value will be considered true. */
| 482 | * Note: any nonzero value will be considered true. |
| 483 | */ |
| 484 | static inline bool DatumGetBool(Datum d) { return (bool)(d != 0); } |
| 485 | static inline Datum BoolGetDatum(bool b) { return (b ? 1 : 0); } |
| 486 | |
| 487 | static inline char DatumGetChar(Datum d) { return (char) d; } |
no outgoing calls