From dc9e9c06421eb9156baf425ac14ec8f50cb8b5ae Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Mon, 14 Apr 2025 17:40:07 +0200 Subject: Update logging --- src/lua/log.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/lua/log.h (limited to 'src/lua/log.h') diff --git a/src/lua/log.h b/src/lua/log.h new file mode 100644 index 0000000..32c235b --- /dev/null +++ b/src/lua/log.h @@ -0,0 +1,15 @@ +#ifndef COMET_LUA_LOG_H +#define COMET_LUA_LOG_H + +#include "api.h" +#include "../log.h" + +// Print the first value on the stack +// +void lua_print_value(FILE *stream, lua_State *state); + +void lua_print_value_at(FILE *stream, lua_State *state, int index); + +int lua_log_library(lua_State *state); + +#endif -- cgit v1.2.3