Skip to content

Commit

Permalink
add nativesizeof sub
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Feb 21, 2015
1 parent 32041d3 commit e321ea6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/NativeCall.pm
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ sub nativecast($target-type, $source) is export(:DEFAULT) {
nqp::decont(map_return_type($target-type)), nqp::decont($source));
}

sub nativesizeof($obj) is export(:DEFAULT) {
nqp::nativecallsizeof(nqp::decont($obj))
}

sub cglobal($libname, $symbol, $target-type) is export {
Proxy.new(
FETCH => -> $ {
Expand Down

0 comments on commit e321ea6

Please sign in to comment.