OOLua  2.0.1
C++ and Lua binding
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Function Return Traits

DSL traits for function return types. More...

Classes

struct  OOLUA::light_return< T >
 Return trait for a light userdata type. More...
 
struct  OOLUA::lua_return< T >
 Return trait for a type which will be owned by Lua. More...
 
struct  OOLUA::maybe_null< T >
 Return trait for a pointer which at runtime maybe NULL. More...
 
struct  OOLUA::shared_return< T >
 Converts a raw pointer return type to the supported shared pointer type. More...
 

Detailed Description

DSL traits for function return types.

Some of the these traits allow for NULL pointers to be returned from functions, which was something commonly requested for the library. When such a trait is used and the runtime value is NULL, Lua's value of nil will be pushed to the stack.