dev ini init
This commit is contained in:
parent
c63760d026
commit
fa6075030a
@ -20,7 +20,7 @@ struct __bkfifo {
|
||||
type buf[((size < 2) || (size & (size - 1))) ? -1 : size]; \
|
||||
}
|
||||
|
||||
|
||||
//static inline void __alloc_
|
||||
|
||||
|
||||
#endif // _BKFIFO_H_
|
6
include/iini.h
Normal file
6
include/iini.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _IINI_H_
|
||||
#define _IINI_H_
|
||||
|
||||
|
||||
|
||||
#endif /* _IINI_H_ */
|
@ -233,4 +233,4 @@ extern void log_buf(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*_LLOG_H_*/
|
||||
#endif /* _LLOG_H_ */
|
16
test/ini/CMakeLists.txt
Normal file
16
test/ini/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.22.1)
|
||||
|
||||
project(ini)
|
||||
|
||||
set(EXECUTABLE_OUTPUT_PATH ../)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(SRC_FILE ini.c)
|
||||
|
||||
include_directories(../../include)
|
||||
add_executable(${PROJECT_NAME} ${SRC_FILE})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(${PROJECT_NAME} wsock32 ws2_32)
|
||||
endif()
|
||||
# cmake ..
|
||||
# cmake --build .
|
22
test/ini/ini.c
Normal file
22
test/ini/ini.c
Normal file
@ -0,0 +1,22 @@
|
||||
#include <llog.h>
|
||||
#include <iini.h>
|
||||
int main() {
|
||||
char log[128] = { 0 };
|
||||
size_t szlog = sizeof(log);
|
||||
log_head_trace(log, szlog);
|
||||
printf("%s\n", log);
|
||||
log_head_debug(log, szlog);
|
||||
printf("%s\n", log);
|
||||
log_head_info(log, szlog);
|
||||
printf("%s\n", log);
|
||||
log_head_warn(log, szlog);
|
||||
printf("%s\n", log);
|
||||
log_head_error(log, szlog);
|
||||
printf("%s\n", log);
|
||||
log_head_fatal(log, szlog);
|
||||
printf("%s\n", log);
|
||||
getchar();
|
||||
|
||||
//LOG_COLOR(23);
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user