summaryrefslogtreecommitdiff
path: root/xmake/scripts/module
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-03 23:42:56 +0800
committerruki <[email protected]>2024-04-03 23:42:56 +0800
commitd08d95ac8fc9e1f316ff180aaedd61e21c384e24 (patch)
treeebcfb72223ceb58280f51cbc327f22d62b2ce749 /xmake/scripts/module
parent817353b79fc9145c18992facd920ec8f9497000b (diff)
improve xmi.h
Diffstat (limited to 'xmake/scripts/module')
-rw-r--r--xmake/scripts/module/xmi.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/xmake/scripts/module/xmi.h b/xmake/scripts/module/xmi.h
new file mode 100644
index 000000000..598d23ef3
--- /dev/null
+++ b/xmake/scripts/module/xmi.h
@@ -0,0 +1,45 @@
+/*!A cross-platform build utility based on Lua
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Copyright (C) 2015-present, TBOOX Open Source Group.
+ *
+ * @author ruki
+ * @file xmi.h
+ *
+ */
+#ifndef XMI_H
+#define XMI_H
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * includes
+ */
+#include <stdlib.h>
+
+/* //////////////////////////////////////////////////////////////////////////////////////
+ * types
+ */
+
+struct lua_State_;
+typedef struct luaL_Reg_ {
+ char const* name;
+ int (*func)(struct lua_State_* lua);
+}luaL_Reg;
+
+typedef struct lua_State_ {
+ void* ctx;
+}lua_State;
+
+#endif
+
+