On 6/7/06, Darwin Slattery <[EMAIL PROTECTED]> wrote:
> I have been having problems with generating the bindings for classes when
> they exist in sub-namespaces of the main namespaces e.g.
> a::b::MyClass
>
> I was not able to set this namesace in the rules file using the
> hook_cpp_namespace because this caused problems with the #ifndef at the top
> of the generated binding header e.g.:
>
> <code>
> #ifndef __HOOK_WXLUA_a::b_H__
> #define __HOOK_WXLUA_a::b_H__
> </code>

This is ok, hook_cpp_namespace is not really a C++ "namespace", but
rather a way to make sure that the names of the functions and
everything else created by the binding generator are unique.

Try just hook_cpp_namespace = "a_b"

To use a real C++ namespace use one of the
hook_cpp_binding_[XXX_includes] to add any code you need to the
bindings.

> It also seems to only process the first part of the namespace:
> 'wxluatest.h:58: error: 'wxObject_a' has not been declared'
>
> I was just wondering if this is supported or if there is any way around this
> short of editing the generated binding files?

Let us know if the above works for you. I do not believe that I've
ever tried using classes within classes so there may be other issues
as well, but lets hope not.

Regards,
    John Labenski


_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to