[Patch] Null pointer return support

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Patch] Null pointer return support

Georgi Chulkov
Hello,

I have written an enhancement to luabind which allows for returning nil
from LUA to C++. If C++ expects a pointer (raw or smart) as a result of
the function, it will receive NULL (or smart_pointer(NULL)) rather than
get a cast_exception.

The patch is against luabind-0.9. It would be great if you would
consider integrating it in future releases.

(Please include me in any replies because I am not subscribed to the list.)

Best,

Georgi Chulkov
Masthead Studios

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user

null_pointer_return.patch (1K) Download Attachment