don't box struct pointer values when they're null
parent
9ce43aadf0
commit
829351f2f2
|
@ -24,8 +24,6 @@ UNION-STRUCT: foo
|
|||
|
||||
[ t ] [ pointer: char c-type char* c-type = ] unit-test
|
||||
|
||||
[ t ] [ pointer: foo c-type-boxer-quot foo c-type-boxer-quot = ] unit-test
|
||||
|
||||
[ t ] [ foo heap-size int heap-size = ] unit-test
|
||||
|
||||
TYPEDEF: int MyInt
|
||||
|
|
|
@ -288,7 +288,7 @@ CONSTANT: primitive-types
|
|||
}
|
||||
|
||||
: (pointer-c-type) ( void* type -- void*' )
|
||||
[ clone ] dip c-type-boxer-quot >>boxer-quot ;
|
||||
[ clone ] dip c-type-boxer-quot '[ _ [ f ] if* ] >>boxer-quot ;
|
||||
|
||||
<PRIVATE
|
||||
|
||||
|
|
Loading…
Reference in New Issue