mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Fixed: Compilation restore new to use new placement
--HG-- branch : develop
This commit is contained in:
parent
1d7b3f470c
commit
aef84bea6d
1 changed files with 13 additions and 1 deletions
|
@ -1705,8 +1705,20 @@ namespace NLGUI
|
||||||
void *ptr= ls.newUserData(sizeof(CReflectableLuaRef));
|
void *ptr= ls.newUserData(sizeof(CReflectableLuaRef));
|
||||||
nlassert(ptr);
|
nlassert(ptr);
|
||||||
//ls.dumpStack();
|
//ls.dumpStack();
|
||||||
|
|
||||||
|
// disable memory leaks detection for placement new
|
||||||
|
#ifdef new
|
||||||
|
#undef new
|
||||||
|
#endif
|
||||||
|
|
||||||
// initialize it, and copy the given element
|
// initialize it, and copy the given element
|
||||||
new (ptr) CReflectableLuaRef(pRPT);
|
new (ptr) CReflectableLuaRef(pRPT);
|
||||||
|
|
||||||
|
// reenable memory leaks detection for placement new
|
||||||
|
#ifdef DEBUG_NEW
|
||||||
|
#define new DEBUG_NEW
|
||||||
|
#endif
|
||||||
|
|
||||||
// Assign to this user data the __ui_metatable
|
// Assign to this user data the __ui_metatable
|
||||||
//ls.dumpStack();
|
//ls.dumpStack();
|
||||||
ls.push(IHM_LUA_METATABLE); // userdata "__ui_metatable"
|
ls.push(IHM_LUA_METATABLE); // userdata "__ui_metatable"
|
||||||
|
|
Loading…
Reference in a new issue