This commit is contained in:
ThePhD 2016-03-14 17:19:43 -04:00
parent 0c42c203c9
commit 83ec159da1
2 changed files with 0 additions and 17 deletions

View File

@ -73,14 +73,6 @@ Get either the global table or the Lua registry as a :doc:`sol::table<table>`, w
Overrides the panic function Lua calls when something unrecoverable or unexpected happens in the Lua VM. Must be a function of the that matches the ``int(*)(lua_State*)`` function signature. Overrides the panic function Lua calls when something unrecoverable or unexpected happens in the Lua VM. Must be a function of the that matches the ``int(*)(lua_State*)`` function signature.
.. code-block:: cpp
:caption: function: make a thread
thread create();
static thread create (lua_State* L);
Creates a thread. Forwards its arguments to :ref:`thread::create<thread-create>`.
.. code-block:: cpp .. code-block:: cpp
:caption: function: make a table :caption: function: make a table

View File

@ -24,7 +24,6 @@
#include "error.hpp" #include "error.hpp"
#include "table.hpp" #include "table.hpp"
#include "thread.hpp"
#include <memory> #include <memory>
namespace sol { namespace sol {
@ -291,14 +290,6 @@ public:
static inline table create_table(lua_State* L, int narr, int nrec, Key&& key, Value&& value, Args&&... args) { static inline table create_table(lua_State* L, int narr, int nrec, Key&& key, Value&& value, Args&&... args) {
return global_table::create(L, narr, nrec, std::forward<Key>(key), std::forward<Value>(value), std::forward<Args>(args)...); return global_table::create(L, narr, nrec, std::forward<Key>(key), std::forward<Value>(value), std::forward<Args>(args)...);
} }
thread create_thread() {
return create_thread(lua_state());
}
static inline thread create_thread(lua_State* L, int narr = 0, int nrec = 0) {
return thread::create(L);
}
}; };
} // sol } // sol