mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Bwuh.
This commit is contained in:
parent
0c42c203c9
commit
83ec159da1
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user