#include <boost/type_traits.hpp>
#include <boost/shared_ptr.hpp>
+#include "lua/luastate.h"
+
#define LUABRIDGE_MAJOR_VERSION 2
#define LUABRIDGE_MINOR_VERSION 0
#define LUABRIDGE_VERSION 200
}
};
+//------------------------------------------------------------------------------
+
+#ifdef LUABINDINGDOC
+class LuaBindingDoc
+{
+public:
+ static bool printBindings ()
+ {
+ return getSettings().print_bindings;
+ }
+
+ static void setPrintBindings (bool en)
+ {
+ getSettings().print_bindings = en;
+ }
+
+private:
+ struct Settings
+ {
+ Settings () : print_bindings (false) { }
+ bool print_bindings;
+ };
+
+ static Settings& getSettings ()
+ {
+ static Settings settings;
+ return settings;
+ }
+};
+#endif
+
+//------------------------------------------------------------------------------
+
+
#include "detail/Userdata.h"
#include "detail/CFunctions.h"
#include "detail/Namespace.h"
Security::setHideMetatables (shouldHide);
}
+#ifdef LUABINDINGDOC
+inline void setPrintBindings (bool en)
+{
+ LuaBindingDoc::setPrintBindings (en);
+}
+#endif
+
} // end Namespace
#endif