Re: [luabind] Splitting registration of a single class?
Brought to you by:
arvidn,
daniel_wallin
From: Dmitriy I. <ias...@gs...> - 2005-10-03 08:59:32
|
Hello Lars, This question is in the mailing list, this is forwarded Daniel reply. btw Arvid and Daniel, this question, probably, should be included into the FAQ or/and manual, don't you think so? DW> Yes it's possible: DW> void register_1(class_<X>& x) DW> { DW> x.def(..); DW> } DW> void register_2(class_<X>& x) DW> { DW> x.def(..); DW> } DW> void register_(lua_State* L) DW> { DW> class_<X> x("x"); DW> register_1(x); DW> register_2(x); DW> module(L) [ x ]; DW> } -- Best regards, Dmitriy mailto:ias...@gs... |