monkeyNik
V2EX  ›  C

低侵入性 C 语言框架

  •  
  •   monkeyNik · Apr 30, 2021 · 1311 views
    This topic created in 1865 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   ·   3269 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:30 · PVG 08:30 · LAX 17:30 · JFK 20:30
    ♥ Do have faith in what you're doing.