mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 00:07:36 +02:00
Experimenting with inline of Cyc_is_pair
This commit is contained in:
parent
37d510a41f
commit
b913edcc9f
2 changed files with 8 additions and 7 deletions
|
@ -394,7 +394,8 @@ int equal(object, object);
|
|||
object equalp(object, object);
|
||||
object Cyc_has_cycle(object lst);
|
||||
object Cyc_is_boolean(object o);
|
||||
object Cyc_is_pair(object o);
|
||||
//object Cyc_is_pair(object o);
|
||||
#define Cyc_is_pair(o) ((is_object_type(o) && ((list) o)->tag == pair_tag) ? boolean_t : boolean_f)
|
||||
object Cyc_is_null(object o);
|
||||
object Cyc_is_number(object o);
|
||||
object Cyc_is_real(object o);
|
||||
|
|
12
runtime.c
12
runtime.c
|
@ -1474,12 +1474,12 @@ object Cyc_is_boolean(object o)
|
|||
return boolean_f;
|
||||
}
|
||||
|
||||
object Cyc_is_pair(object o)
|
||||
{
|
||||
if (is_object_type(o) && ((list) o)->tag == pair_tag)
|
||||
return boolean_t;
|
||||
return boolean_f;
|
||||
}
|
||||
//object Cyc_is_pair(object o)
|
||||
//{
|
||||
// if (is_object_type(o) && ((list) o)->tag == pair_tag)
|
||||
// return boolean_t;
|
||||
// return boolean_f;
|
||||
//}
|
||||
|
||||
object Cyc_is_null(object o)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue