Greetings

I am trying to use g-wrap in one of my projects at my work. Please
help me use it.

Presently I am just trying to learn to use it, What I have noticed is
that version 1.9.7 does not work as expected for the file I have
attached herewith. Basically it does not put the #include for frob.h
file. The same file works with version 1.9.6.

Please let me know if I need to use version 1.9.7 somewhat differently.

Regards
Puneet
(use-modules (ice-9 format)
             (oop goops)
             (g-wrap)
             (g-wrap guile)
             (g-wrap guile ws standard))


(define-class <frob-wrapset> (<gw-guile-wrapset>)
  #:id 'frob-wrapset
  #:dependencies '(standard))

(define-method (initialize (ws <frob-wrapset>) initargs)
  (next-method)

  ;; populate the wrapset
  (wrap-function! ws
                  #:name 'frob
                  #:returns 'double
                  #:arguments '((double x) (double y))
                  #:c-name "frob"
                  #:description "Returns the result of frobbing x and y"))

;; This method does not get called when I am using g-wrap 1.9.7
(define-method (global-declarations-cg (ws <frob-wrapset>))
  (let ((prec-decl (next-method)))
    (format #t "declaration-cg/frob-wrapset~%")
    (list prec-decl
   "#include \"frob.h\"\n")))

(define-class <frob-guile-wrapset> (<frob-wrapset> <gw-guile-wrapset>))

(generate-wrapset 'guile 'frob-wrapset "frob-wrapset")
_______________________________________________
g-wrap-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/g-wrap-dev

Reply via email to