Assertion failed
Sandro Ferreira <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody,
I having an "assertion failed" on line 102 of inheritance.hpp file.
I'm using the latest version of github, and it's an error of the new
version, becouse same code works on version 0.8.
I have two modules (dlls).
The modules have the folowing code:
-- Module1 {
class MOD1_API CMod1 {
public:
CMod1(void) { fprintf_s(stdout, "CMod1::CMod1()\n"); }
~CMod1(void){ fprintf_s(stdout, "CMod1::~CMod1()\n"); }
};
extern "C" MOD1_API int luaopen_CMod1(lua_State* L)
{
if (luabind::detail::class_registry::get_registry(L) == 0)
luabind::open(L);
luabind::module(L)
[ luabind::class_<CMod1>("CMod1")
.def(luabind::constructor<>())
];
return 0;
}
-- }
-- Module2 {
class MOD2_API CMod2 {
public:
CMod2(void) { fprintf_s(stdout, "CMod2::CMod2()\n"); }
~CMod2(void){ fprintf_s(stdout, "CMod2::~CMod2()\n"); }
};
extern "C" MOD1_API int luaopen_CMod2(lua_State* L)
{
if (luabind::detail::class_registry::get_registry(L) == 0)
luabind::open(L);
luabind::module(L)
[ luabind::class_<CMod2>("CMod2")
.def(luabind::constructor<>())
];
return 0;
}
-- }
And I have the assertion when I call following code in Lua:
require'CMod1'
require'CMod2' --<< assertion ocurr here
Thanks.
--
Sandro Souza Ferreira
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user