低侵入性C语言库

#include <stdio.h>
#include "mln_log.h"
#define MLN_SIMPLE_INIT //低侵入性必带宏
#include "mln_core.h"
int main(void)
{
mln_simple_init = 1; //等于几无所谓,但必须有
mln_log(debug, "aaa\n"); //使用日志函数输出,也可以是其他库内组件的使用
return 0;
}

隐含的完成了C语言库的全局加载,几乎无侵入性。大家可以猜猜加载是在哪里完成的😏
展开
评论