Re: [luabind] Checking if class is already binded
Brought to you by:
arvidn,
daniel_wallin
From: Sergey S. <vo...@ev...> - 2004-02-25 17:38:31
|
Thanks, works like a charm! Sergey. [skipped] AN> The easiest way to check would be to just see if there's a variable AN> with that name on the lua side. Something like this: AN> // does class 'test' exist in the global scope? AN> object test = get_globals(L)["test"]; AN> if (test.type() == LUA_TUSERDATA) AN> { AN> // yes, the class has been registered AN> } [skipped] -- Arvid Norberg |