Changeset 8d66610 for libcfa/src/virtual.c
- Timestamp:
- May 21, 2021, 4:48:10 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f1bce515
- Parents:
- 5407cdc (diff), 7404cdc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/src/virtual.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/virtual.c
r5407cdc r8d66610 10 10 // Created On : Tus Jul 11 15:10:00 2017 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Jul 26 14:24:00 201713 // Update Count : 112 // Last Modified On : Mon May 17 11:01:00 2021 13 // Update Count : 2 14 14 // 15 15 … … 17 17 #include "assert.h" 18 18 19 int __cfa__is_parent( struct __cfa__parent_vtable const * parent, 20 struct __cfa__parent_vtable const * child ) { 19 int __cfavir_is_parent( 20 __cfavir_type_id parent, 21 __cfavir_type_id child ) { 21 22 assert( child ); 22 23 do { … … 28 29 } 29 30 30 void * __cfa__virtual_cast( struct __cfa__parent_vtable const * parent, 31 struct __cfa__parent_vtable const * const * child ) { 31 void * __cfavir_virtual_cast( 32 __cfavir_type_id parent, 33 __cfavir_type_id const * child ) { 32 34 assert( child ); 33 return (__cfa __is_parent(parent, *child)) ? (void *)child : (void *)0;35 return (__cfavir_is_parent(parent, *child)) ? (void *)child : (void *)0; 34 36 }
Note:
See TracChangeset
for help on using the changeset viewer.