File: inline-me.scm

package info (click to toggle)
chicken 5.3.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,892 kB
  • sloc: ansic: 580,083; lisp: 71,987; tcl: 1,445; sh: 588; makefile: 60
file content (11 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
(module
 inline-me
 (foreign-foo external-foo)
 (import scheme (chicken base))
 (import (only (chicken foreign) foreign-lambda*))

 (define foreign-foo (foreign-lambda* int ((int x)) "C_return ( x + 1 );"))

 (define (external-foo x y) (display x y))

)