summaryrefslogtreecommitdiff
path: root/libs/lua/LuaBridge/detail/LuaRef.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/lua/LuaBridge/detail/LuaRef.h')
-rw-r--r--libs/lua/LuaBridge/detail/LuaRef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/lua/LuaBridge/detail/LuaRef.h b/libs/lua/LuaBridge/detail/LuaRef.h
index e85f670b21..60010f87da 100644
--- a/libs/lua/LuaBridge/detail/LuaRef.h
+++ b/libs/lua/LuaBridge/detail/LuaRef.h
@@ -62,6 +62,7 @@ private:
when returning objects, to avoid an explicit temporary variable, since
the destructor executes after the return statement. For example:
+ \code
template <class U>
U cast (lua_State* L)
{
@@ -69,6 +70,7 @@ private:
...
return U (); // dtor called after this line
}
+ \endcode
@note The `StackPop` object must always be a named local variable.
*/
@@ -77,6 +79,7 @@ private:
public:
/** Create a StackPop object.
+ @param L the LuaState to modify
@param count The number of stack entries to pop on destruction.
*/
StackPop (lua_State* L, int count)
@@ -277,6 +280,7 @@ private:
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/e30b2664-a92d-445c-9db2-e8e0fbde2014
https://connect.microsoft.com/VisualStudio/feedback/details/771509/correct-code-doesnt-compile
+ \code
// This code snippet fails to compile in vs2010,vs2012
struct S {
template <class T> inline operator T () const { return T (); }
@@ -285,6 +289,7 @@ private:
S () || false;
return 0;
}
+ \endcode
*/
template <class T>
inline operator T () const
@@ -886,6 +891,7 @@ public:
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/e30b2664-a92d-445c-9db2-e8e0fbde2014
https://connect.microsoft.com/VisualStudio/feedback/details/771509/correct-code-doesnt-compile
+ \code
// This code snippet fails to compile in vs2010,vs2012
struct S {
template <class T> inline operator T () const { return T (); }
@@ -894,6 +900,7 @@ public:
S () || false;
return 0;
}
+ \endcode
*/
template <class T>
inline operator T () const