Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Basic call handling and converting between NQP and JNA types.
This means that we support int, num, str and cpointer as arguments and return values, which in turn means that we pass the basic sanity tests in the NQP test suite.
- Loading branch information
Showing
3 changed files
with
138 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/CPointerInstance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| package org.perl6.nqp.sixmodel.reprs; | ||
|
|
||
| import com.sun.jna.Pointer; | ||
|
|
||
| import org.perl6.nqp.sixmodel.SixModelObject; | ||
|
|
||
| public class CPointerInstance extends SixModelObject { | ||
| /* Nothing here yet. */ | ||
| public Pointer pointer; | ||
| } |