logLevelInvalid for bad function calls and invalid data formats.

This commit is contained in:
jussi
2023-08-04 22:21:40 +03:00
parent 8ad7254292
commit 5438a70b0a
22 changed files with 698 additions and 632 deletions

View File

@@ -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 );

View File

@@ -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();

View File

@@ -21,6 +21,7 @@ typedef struct {
lua_State *luaState;
Vector2 resolution;
size_t guiFont;
int logLevelInvalid;
/* Resources. */
/* Images. */
Image **images;