summaryrefslogtreecommitdiff
path: root/src/platforms/core_web.c
diff options
context:
space:
mode:
authorjussi2023-11-29 19:52:47 +0200
committerjussi2023-11-29 19:52:47 +0200
commit8882d2ff2c4c77c08a5c5b0931a70ff906ecbdb5 (patch)
tree1ec267213ed205af75fcc02c46f45c05e01fa7bb /src/platforms/core_web.c
parent4ff1b1dcb9f52a2642feabda38c8c135aac6c599 (diff)
downloadreilua-enhanced-8882d2ff2c4c77c08a5c5b0931a70ff906ecbdb5.tar.gz
reilua-enhanced-8882d2ff2c4c77c08a5c5b0931a70ff906ecbdb5.tar.bz2
reilua-enhanced-8882d2ff2c4c77c08a5c5b0931a70ff906ecbdb5.zip
Platform web.
Diffstat (limited to 'src/platforms/core_web.c')
-rw-r--r--src/platforms/core_web.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/platforms/core_web.c b/src/platforms/core_web.c
new file mode 100644
index 0000000..24d3bf2
--- /dev/null
+++ b/src/platforms/core_web.c
@@ -0,0 +1,20 @@
+#include "main.h"
+#include "lua_core.h"
+#include "core.h"
+
+void platformDefineGlobals() {
+ lua_State *L = state->luaState;
+
+ lua_getglobal( L, "RL" );
+/*DOC_DEFINES_START*/
+/*DOC_DEFINES_END*/
+ lua_pop( L, -1 );
+}
+
+/* Functions. */
+
+/* Events. */
+
+void luaPlatformRegister() {
+ return;
+}