Debian Codegraph @

ext/package-templates/extensionlib.scm

raw
1 ;;;
2 ;;; @@extname@@lib.scm
3 ;;;
4
5 ;; This line ensures defined bindings are inserted into @@modname@@.
6 (in-module @@modname@@)
7
8 (inline-stub
9 (.include "@@extname@@.h")
10
11 ;; The 'define-cproc' forms exposes C functions to Scheme world.
12 ;; The following entry is a dummy one. Replace it for your definitions.
13
14 (define-cproc test-@@extname@@ ()
15 (return (test_@@extname@@)))
16 )
17
18 ;; You can define Scheme procedures here, which you want to be
19 ;; precompiled. Note that you need to 'use' necessary modules,
20 ;; for this file does not read the module definition file.