* src/gnc-module/test/mod-baz/baz-gwrap.scm: fix for new g-wrap.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6575 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/g2-gog-integ
Rob Browning 25 years ago
parent 494aeb4dbc
commit 901a2840d9

@ -1,17 +1,20 @@
(use-modules (g-wrap))
(debug-set! maxdepth 100000)
(debug-set! stack 2000000)
(let ((mod (gw:new-module "baz-gwrap")))
(gw:module-depends-on mod "gw-runtime")
(gw:module-set-declarations-ccodegen!
mod
(lambda (unused)
(list "#include \"baz.h\"\n")))
(use-modules (g-wrap gw-standard-spec))
(let ((ws (gw:new-wrapset "baz-gwrap")))
(gw:wrapset-depends-on ws "gw-standard")
(gw:wrapset-add-cs-declarations!
ws
(lambda (wrapset client-wrapset)
"#include \"baz.h\"\n"))
(gw:wrap-function
mod 'baz:hello
'<gw:bool> "baz_hello"
'()
ws
'baz:hello
'<gw:bool> "baz_hello" '()
"Print a simple message from C"))

Loading…
Cancel
Save