Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (12 sloc) 0.268 kb
09b7f3a @FROGGS Initial commit
authored
1 p6-Inline-C
f7b6851 @FROGGS first working piece of code
authored
2 ===========
3
58d73ae @FROGGS proper format
authored
4 USAGE
5 -----
f7b6851 @FROGGS first working piece of code
authored
6
58d73ae @FROGGS proper format
authored
7 #!/usr/bin/env perl6
f7b6851 @FROGGS first working piece of code
authored
8
58d73ae @FROGGS proper format
authored
9 use soft; # for now
10 use Inline;
11
12 my sub a_plus_b( Int $a, Int $b ) is inline('C') returns Int {'
13 DLLEXPORT int a_plus_b (int a, int b) {
14 return a + b;
15 }
16 '}
Something went wrong with that request. Please try again.