projects
/
cl-gtk2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a362544
)
glib: do not call undefined foreign type initializers, but issue a warning
author
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Thu, 30 Jul 2009 11:47:47 +0000
(15:47 +0400)
committer
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Thu, 30 Jul 2009 11:53:13 +0000
(15:53 +0400)
glib/gobject.generating.lisp
patch
|
blob
|
history
diff --git
a/glib/gobject.generating.lisp
b/glib/gobject.generating.lisp
index
06bf496
..
cac7f48
100644
(file)
--- a/
glib/gobject.generating.lisp
+++ b/
glib/gobject.generating.lisp
@@
-136,7
+136,9
@@
(defun type-initializer-call (type-initializer)
(etypecase type-initializer
- (string `(foreign-funcall ,type-initializer g-type))
+ (string `(if (foreign-symbol-pointer ,type-initializer)
+ (foreign-funcall ,type-initializer g-type)
+ (warn "Type initializer '~A' is not available" ,type-initializer)))
(symbol `(funcall ',type-initializer))))
(defun meta-property->slot (class-name property)