Fix debug builds on linux
This commit is contained in:
parent
cc330121b3
commit
bac62f7bca
2
Makefile
2
Makefile
|
@ -957,7 +957,7 @@ else ifeq ($(TARGET_RPI),1)
|
||||||
LDFLAGS += -Llib/lua/linux -l:liblua53-arm.a
|
LDFLAGS += -Llib/lua/linux -l:liblua53-arm.a
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
LDFLAGS += -Llib/lua/linux -l:liblua53.a
|
LDFLAGS += -Llib/lua/linux -l:liblua53.a -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Network/Discord/Bass (ugh, needs cleanup)
|
# Network/Discord/Bass (ugh, needs cleanup)
|
||||||
|
|
|
@ -42,8 +42,8 @@ static void _debuglog_print_log(char* logType, char* filename) {
|
||||||
_debuglog_print_short_filename(filename);
|
_debuglog_print_short_filename(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LOG_DEBUG(...) if (configDebugPrint) { ( _debuglog_print_log("DEBUG", __FILE__), printf(__VA_ARGS__), printf("\n") ); }
|
#define LOG_DEBUG(...) (configDebugPrint ? ( _debuglog_print_log("DEBUG", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
|
||||||
#define LOG_INFO(...) if (configDebugInfo) { ( _debuglog_print_log("INFO", __FILE__), printf(__VA_ARGS__), printf("\n") ); }
|
#define LOG_INFO(...) (configDebugInfo ? ( _debuglog_print_log("INFO", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
|
||||||
#define LOG_ERROR(...) if (configDebugError) { ( _debuglog_print_log("ERROR", __FILE__), printf(__VA_ARGS__), printf("\n") ); }
|
#define LOG_ERROR(...) (configDebugError ? ( _debuglog_print_log("ERROR", __FILE__), printf(__VA_ARGS__), printf("\n") ) : 0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#define PATCH_VERSION_NUMBER 3
|
#define PATCH_VERSION_NUMBER 3
|
||||||
|
|
||||||
#define MAX_VERSION_LENGTH 10
|
#define MAX_VERSION_LENGTH 10
|
||||||
#define MAX_LOCAL_VERSION_LENGTH 11
|
#define MAX_LOCAL_VERSION_LENGTH 12
|
||||||
char* get_version(void);
|
char* get_version(void);
|
||||||
char* get_version_local(void);
|
char* get_version_local(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue