Have we fixed the formatting properly?
This commit is contained in:
parent
4e512b44c3
commit
4ae5ead3f8
1305
src/core.c
1305
src/core.c
File diff suppressed because it is too large
Load Diff
26
src/utils.c
26
src/utils.c
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
// Check if config flags have been externally provided on compilation line
|
||||
#if !defined(EXTERNAL_CONFIG_FLAGS)
|
||||
#include "config.h" // Defines module configuration flags
|
||||
#include "config.h" // Defines module configuration flags
|
||||
#endif
|
||||
|
||||
#include "utils.h"
|
||||
|
|
@ -102,7 +102,7 @@ void SetTraceLogCallback(TraceLogCallback callback)
|
|||
}
|
||||
|
||||
// Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
|
||||
void TraceLog(int logType, const char* text, ...)
|
||||
void TraceLog(int logType, const char *text, ...)
|
||||
{
|
||||
#if defined(SUPPORT_TRACELOG)
|
||||
// Message has level below current threshold, don't emit
|
||||
|
|
@ -130,23 +130,17 @@ void TraceLog(int logType, const char* text, ...)
|
|||
default: break;
|
||||
}
|
||||
#else
|
||||
char buffer[MAX_TRACELOG_BUFFER_SIZE] = {0};
|
||||
char buffer[MAX_TRACELOG_BUFFER_SIZE] = { 0 };
|
||||
|
||||
switch (logType)
|
||||
{
|
||||
case LOG_TRACE: strcpy(buffer, "TRACE: ");
|
||||
break;
|
||||
case LOG_DEBUG: strcpy(buffer, "DEBUG: ");
|
||||
break;
|
||||
case LOG_INFO: strcpy(buffer, "INFO: ");
|
||||
break;
|
||||
case LOG_WARNING: strcpy(buffer, "WARNING: ");
|
||||
break;
|
||||
case LOG_ERROR: strcpy(buffer, "ERROR: ");
|
||||
break;
|
||||
case LOG_FATAL: strcpy(buffer, "FATAL: ");
|
||||
break;
|
||||
default: break;
|
||||
case LOG_TRACE: strcpy(buffer, "TRACE: "); break;
|
||||
case LOG_DEBUG: strcpy(buffer, "DEBUG: "); break;
|
||||
case LOG_INFO: strcpy(buffer, "INFO: "); break;
|
||||
case LOG_WARNING: strcpy(buffer, "WARNING: "); break;
|
||||
case LOG_ERROR: strcpy(buffer, "ERROR: "); break;
|
||||
case LOG_FATAL: strcpy(buffer, "FATAL: "); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
strcat(buffer, text);
|
||||
|
|
|
|||
30
src/utils.h
30
src/utils.h
|
|
@ -72,28 +72,18 @@ typedef enum
|
|||
HideMouse,
|
||||
LockMouse,
|
||||
UnlockMouse,
|
||||
SetMouseLocation,
|
||||
//Vector0 (pos)
|
||||
SetMouseLocation, //Vector0 (pos)
|
||||
|
||||
//Recieve (Into C)
|
||||
RegisterKey,
|
||||
//Int0 (key), Char0 (status)
|
||||
RegisterClick,
|
||||
//Int0 (button), Char0 (status)
|
||||
ScrollWheelUpdate,
|
||||
//Int0 (delta)
|
||||
UpdateMouseLocation,
|
||||
//Vector0 (pos)
|
||||
MarkGamepadActive,
|
||||
//Int0 (gamepad), Bool0 (active or not)
|
||||
MarkGamepadButton,
|
||||
//Int0 (gamepad), Int1 (button), Char0 (status)
|
||||
MarkGamepadAxis,
|
||||
//Int0 (gamepad), int1 (axis), Float0 (value)
|
||||
SetDisplayDims,
|
||||
//Vector0 (display dimensions)
|
||||
HandleResize,
|
||||
//Vector0 (new dimensions) - Onresized event
|
||||
RegisterKey, //Int0 (key), Char0 (status)
|
||||
RegisterClick, //Int0 (button), Char0 (status)
|
||||
ScrollWheelUpdate, //Int0 (delta)
|
||||
UpdateMouseLocation, //Vector0 (pos)
|
||||
MarkGamepadActive, //Int0 (gamepad), Bool0 (active or not)
|
||||
MarkGamepadButton, //Int0 (gamepad), Int1 (button), Char0 (status)
|
||||
MarkGamepadAxis,//Int0 (gamepad), int1 (axis), Float0 (value)
|
||||
SetDisplayDims, //Vector0 (display dimensions)
|
||||
HandleResize, //Vector0 (new dimensions) - Onresized event
|
||||
} UWPMessageType;
|
||||
|
||||
typedef struct UWPMessage
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user