File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,11 @@ cog_object* cog_run_well_known(cog_object*, const char*);
506
506
*/
507
507
cog_object * cog_run_well_known_strict (cog_object * , const char * );
508
508
509
+ /**
510
+ * Returns true if an implementation for the specified well-known method appears to exist
511
+ * for that object's type. It doesn't call anything so there's no way of knowing if the
512
+ * method would return `cog_not_implemented()`.
513
+ */
509
514
bool cog_has_well_known (cog_object * , const char * );
510
515
511
516
/**
@@ -646,14 +651,15 @@ extern cog_obj_type cog_ot_continuation;
646
651
647
652
/**
648
653
* Ensures that an object is a list type, returning early with an error if not.
654
+ * This is special-cased because NULL is considered to be a list and not anything else.
649
655
*/
650
656
#define COG_ENSURE_LIST (obj ) \
651
657
do { \
652
658
if (obj) COG_ENSURE_TYPE((obj), &cog_ot_list); \
653
659
} while (0)
654
660
655
661
/**
656
- * Ensures that an object is one of the numeric types, returning early with an error if not, and storing the float result in the variable
662
+ * Ensures that an object is one of the numeric types, returning early with an error if not, and storing the float result in the variable.
657
663
*/
658
664
#define COG_GET_NUMBER (obj , var ) \
659
665
do { \
You can’t perform that action at this time.
0 commit comments