Fix running of Guile multivalue and std_vector examples
This commit is contained in:
parent
10acae18d2
commit
1adb239046
4 changed files with 6 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ TARGET = example
|
|||
INTERFACE = example.i
|
||||
|
||||
check: build
|
||||
$(MAKE) -f ../Makefile RUNSCRIPT=runme.scm run_example
|
||||
|
||||
build:
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
;;;; Show the three different ways to deal with multiple return values
|
||||
|
||||
(use-modules (example))
|
||||
(dynamic-call "scm_init_example_module" (dynamic-link "./libexample"))
|
||||
|
||||
;;; Multiple values as lists. By default, if more than one value is to
|
||||
;;; be returned, a list of the values is created and returned. The
|
||||
|
|
@ -64,3 +64,4 @@
|
|||
(display remainder)
|
||||
(newline))
|
||||
|
||||
(exit 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue