monkeyNik
V2EX  ›  C

低侵入性 C 语言框架

  •  
  •   monkeyNik · Apr 30, 2021 · 1289 views
    This topic created in 1854 days ago, the information mentioned may be changed or developed.
    #include <stdio.h>
    #include "mln_core.h"
    #include "mln_log.h"
    
    int main(void)
    {
        mln_simple_init = 1;
        mln_log(debug, "aaa\n");
        return 0;
    }
    

    既完成了初始化,又几乎没有初始化步骤,GCC 威武。 我没写错,你也没看错,确实初始化框架了,因为日志函数需要被初始化,包括锁、文件句柄以及日志等级等等内容。当然初始化内容不仅如此,因此就是这么简单!

    Github:项目仓库

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3126 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 14:00 · PVG 22:00 · LAX 07:00 · JFK 10:00
    ♥ Do have faith in what you're doing.