mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Headerguard derp; fixed.
This commit is contained in:
parent
0373dd4eb2
commit
a767859e24
|
@ -19,7 +19,7 @@
|
||||||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
#ifndef SOL_USERDATA_HPP
|
#ifndef SOL_USERTYPE_HPP
|
||||||
#define SOL_USERTYPE_HPP
|
#define SOL_USERTYPE_HPP
|
||||||
|
|
||||||
#include "state.hpp"
|
#include "state.hpp"
|
||||||
|
@ -351,8 +351,8 @@ public:
|
||||||
metafunctions, metafunctiontable);
|
metafunctions, metafunctiontable);
|
||||||
set_global_deleter(L);
|
set_global_deleter(L);
|
||||||
}
|
}
|
||||||
private:
|
|
||||||
|
|
||||||
|
private:
|
||||||
template<typename Meta, typename MetaFuncs, typename MetaFuncTable>
|
template<typename Meta, typename MetaFuncs, typename MetaFuncTable>
|
||||||
static void push_metatable(lua_State* L, Meta&& metakey, MetaFuncs&& metafuncs, MetaFuncTable&& metafunctable) {
|
static void push_metatable(lua_State* L, Meta&& metakey, MetaFuncs&& metafuncs, MetaFuncTable&& metafunctable) {
|
||||||
luaL_newmetatable(L, std::addressof(metakey[0]));
|
luaL_newmetatable(L, std::addressof(metakey[0]));
|
||||||
|
@ -361,7 +361,6 @@ private:
|
||||||
int up = push_upvalues(L, metafuncs);
|
int up = push_upvalues(L, metafuncs);
|
||||||
luaL_setfuncs(L, metafunctable.data(), up);
|
luaL_setfuncs(L, metafunctable.data(), up);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_global_deleter(lua_State* L) {
|
void set_global_deleter(lua_State* L) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user