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