From 8ce117f0b3fd4ceeb1d7058dde8793e4421ec076 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:44:50 +1000 Subject: trying to get rust bindgen working --- src/core.c | 10 +++++++--- src/log.c | 7 +++++++ 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core.c b/src/core.c index 88979bb..79b9d6e 100644 --- a/src/core.c +++ b/src/core.c @@ -2,10 +2,14 @@ #include -void Core_Bringup(const char* window_name) { +NAMESPACED_LOGGER(core); + +void Core_Bringup(const char* window_name, struct GLFWwindow* optional_window) { // INFO("Initiate Core bringup"); - printf("Initiate core bringup\n"); + INFO("Initiate Core bringup"); - printf("Create GLFW window\n"); + INFO("Create GLFW window"); } void Core_Shutdown() {} + +bool AppShouldExit() { return true; } diff --git a/src/log.c b/src/log.c index e69de29..f0dfd87 100644 --- a/src/log.c +++ b/src/log.c @@ -0,0 +1,7 @@ +#include + +void log_output(char* module, LogLevel level, const char* message, ...) { + char out_msg[4096]; + + printf("Msg: %s\n", message); +} -- cgit v1.2.3-70-g09d2