summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjussi2023-08-04 22:21:40 +0300
committerjussi2023-08-04 22:21:40 +0300
commit5438a70b0a5aac72c071c90650b509cf46e557cb (patch)
tree6d6eb0823cb62e9029b4b75b68a3f4fe7a5f88ac /include
parent8ad725429292be22086d51df285907742be7a91a (diff)
downloadreilua-enhanced-5438a70b0a5aac72c071c90650b509cf46e557cb.tar.gz
reilua-enhanced-5438a70b0a5aac72c071c90650b509cf46e557cb.tar.bz2
reilua-enhanced-5438a70b0a5aac72c071c90650b509cf46e557cb.zip
logLevelInvalid for bad function calls and invalid data formats.
Diffstat (limited to 'include')
-rw-r--r--include/core.h2
-rw-r--r--include/lua_core.h3
-rw-r--r--include/state.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/include/core.h b/include/core.h
index 436bd9b..bfedf81 100644
--- a/include/core.h
+++ b/include/core.h
@@ -43,6 +43,8 @@ int lcoreTakeScreenshot( lua_State *L );
int lcoreSetConfigFlags( lua_State *L );
int lcoreTraceLog( lua_State *L );
int lcoreSetTraceLogLevel( lua_State *L );
+int lcoreSetLogLevelInvalid( lua_State *L );
+int lcoreGetLogLevelInvalid( lua_State *L );
int lcoreOpenURL( lua_State *L );
/* Cursor. */
int lcoreShowCursor( lua_State *L );
diff --git a/include/lua_core.h b/include/lua_core.h
index 04924bc..972214e 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -1,5 +1,8 @@
#pragma once
+void defineGlobals();
+void logCustom( int logLevel, const char *text, va_list args );
+
bool luaInit();
int luaTraceback( lua_State *L );
bool luaCallMain();
diff --git a/include/state.h b/include/state.h
index e4cb72f..7a2dd95 100644
--- a/include/state.h
+++ b/include/state.h
@@ -21,6 +21,7 @@ typedef struct {
lua_State *luaState;
Vector2 resolution;
size_t guiFont;
+ int logLevelInvalid;
/* Resources. */
/* Images. */
Image **images;