From 1f92d4c389cceba6f90261d9cb29885c8a3ca24c Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Oct 2021 09:19:59 +0800 Subject: *misc --- Runtime/Lua/LuaBind/LuaBindUtility.h | 5 ++++- Runtime/Math/Matrix44.cpp | 0 Runtime/Math/Matrix44.h | 9 +++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Runtime/Math/Matrix44.cpp create mode 100644 Runtime/Math/Matrix44.h (limited to 'Runtime') diff --git a/Runtime/Lua/LuaBind/LuaBindUtility.h b/Runtime/Lua/LuaBind/LuaBindUtility.h index c5807c1..b890b57 100644 --- a/Runtime/Lua/LuaBind/LuaBindUtility.h +++ b/Runtime/Lua/LuaBind/LuaBindUtility.h @@ -48,7 +48,10 @@ T* self = state.GetUserdata(1); #define LUA_BIND_CHECK(L, params)\ - if(!state.CheckParams(1, params)) return 0 + if(!state.CheckParams(1, params)) {\ + luaL_error(state, "Unexcepted parameters.");\ + return 0;\ + } #define LUA_BIND_INHERIT(state, type) type::RegisterClass(state) diff --git a/Runtime/Math/Matrix44.cpp b/Runtime/Math/Matrix44.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Runtime/Math/Matrix44.h b/Runtime/Math/Matrix44.h new file mode 100644 index 0000000..1ec92fd --- /dev/null +++ b/Runtime/Math/Matrix44.h @@ -0,0 +1,9 @@ +#pragma once + +namespace Internal +{ + class Matrix44 + { + + }; +} -- cgit v1.1-26-g67d0