@@ -353,6 +353,15 @@ void *polyglot_new_instance(const void *object, ...);
353
353
*/
354
354
bool polyglot_has_members (const void * value );
355
355
356
+ /**
357
+ * Check whether a polyglot value contains a given named member.
358
+ *
359
+ * @param object the polyglot value to test
360
+ * @param name the name of the member to be checked for existance
361
+ * @return true if the member exists, false otherwise
362
+ */
363
+ bool polyglot_has_member (const void * value , const char * name );
364
+
356
365
/**
357
366
* Read a named member from a polyglot object.
358
367
*
@@ -676,37 +685,37 @@ __POLYGLOT_DECLARE_GENERIC_ARRAY(double, double)
676
685
/**
677
686
* Get a polyglot typeid for the primitive bool type.
678
687
*/
679
- static void * polyglot_boolean_typeid ();
688
+ static polyglot_typeid polyglot_boolean_typeid ();
680
689
681
690
/**
682
691
* Get a polyglot typeid for the primitive int8_t type.
683
692
*/
684
- static void * polyglot_int8_typeid ();
693
+ static polyglot_typeid polyglot_int8_typeid ();
685
694
686
695
/**
687
696
* Get a polyglot typeid for the primitive int16_t type.
688
697
*/
689
- static void * polyglot_int16_typeid ();
698
+ static polyglot_typeid polyglot_int16_typeid ();
690
699
691
700
/**
692
701
* Get a polyglot typeid for the primitive int32_t type.
693
702
*/
694
- static void * polyglot_int32_typeid ();
703
+ static polyglot_typeid polyglot_int32_typeid ();
695
704
696
705
/**
697
706
* Get a polyglot typeid for the primitive int64_t type.
698
707
*/
699
- static void * polyglot_int64_typeid ();
708
+ static polyglot_typeid polyglot_int64_typeid ();
700
709
701
710
/**
702
711
* Get a polyglot typeid for the primitive float type.
703
712
*/
704
- static void * polyglot_float_typeid ();
713
+ static polyglot_typeid polyglot_float_typeid ();
705
714
706
715
/**
707
716
* Get a polyglot typeid for the primitive double type.
708
717
*/
709
- static void * polyglot_double_typeid ();
718
+ static polyglot_typeid polyglot_double_typeid ();
710
719
711
720
/**
712
721
* Converts a polyglot value to an integer array.
0 commit comments