summaryrefslogtreecommitdiff
path: root/Runtime
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-29 09:19:59 +0800
committerchai <chaifix@163.com>2021-10-29 09:19:59 +0800
commit1f92d4c389cceba6f90261d9cb29885c8a3ca24c (patch)
treec367529724630f281c97d4d10cb8ddcdb23b69e3 /Runtime
parent720e718186e6ec0e76bc08a9cedf9f08afc5e904 (diff)
*misc
Diffstat (limited to 'Runtime')
-rw-r--r--Runtime/Lua/LuaBind/LuaBindUtility.h5
-rw-r--r--Runtime/Math/Matrix44.cpp0
-rw-r--r--Runtime/Math/Matrix44.h9
3 files changed, 13 insertions, 1 deletions
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<T>(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
--- /dev/null
+++ b/Runtime/Math/Matrix44.cpp
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
+ {
+
+ };
+}