Changes in libcfa/src/virtual.c [bf71cfd:ecfd758]
- File:
-
- 1 edited
-
libcfa/src/virtual.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/virtual.c
rbf71cfd recfd758 15 15 16 16 #include "virtual.h" 17 #include "assert.h" 17 18 18 19 int __cfa__is_parent( struct __cfa__parent_vtable const * parent, 19 20 struct __cfa__parent_vtable const * child ) { 21 assert( child ); 20 22 do { 21 23 if ( parent == child ) … … 28 30 void * __cfa__virtual_cast( struct __cfa__parent_vtable const * parent, 29 31 struct __cfa__parent_vtable const * const * child ) { 32 assert( child ); 30 33 return (__cfa__is_parent(parent, *child)) ? (void *)child : (void *)0; 31 34 }
Note:
See TracChangeset
for help on using the changeset viewer.