mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
* Removed SCM_TRUE_P since it may get confused with !SCM_FALSEP.
This commit is contained in:
parent
1f496b05af
commit
9a09deb1c3
16 changed files with 47 additions and 30 deletions
|
@ -50,11 +50,10 @@
|
|||
/* Boolean Values
|
||||
*
|
||||
*/
|
||||
#define SCM_TRUE_P(x) (SCM_EQ_P ((x), SCM_BOOL_T))
|
||||
#define SCM_FALSEP(x) (SCM_EQ_P ((x), SCM_BOOL_F))
|
||||
#define SCM_NFALSEP(x) (!SCM_FALSEP (x))
|
||||
|
||||
#define SCM_BOOLP(x) (SCM_TRUE_P (x) || SCM_FALSEP (x))
|
||||
#define SCM_BOOLP(x) (SCM_EQ_P ((x), SCM_BOOL_F) || SCM_EQ_P ((x), SCM_BOOL_T))
|
||||
|
||||
/* Convert from a C boolean to a SCM boolean value */
|
||||
#define SCM_BOOL(f) ((f) ? SCM_BOOL_T : SCM_BOOL_F)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue