Low-invasive C language library

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NPC403
    New Member
    • Apr 2021
    • 1

    #1

    Low-invasive C language library

    Code:
    #include <stdio.h>
    #include "mln_log.h"
    #define MLN_SIMPLE_INIT //Necessary macro for low invasive feature
    #include "mln_core.h"
    
    int main(void)
    {
      mln_simple_init = 1; //just assign a value to it, whatever its value is
      mln_log(debug, "aaa\n"); //output log. you can use other components here
      return 0;
    }
    The global loading of the C language library is completed implicitly, almost non-invasive.

    Just for fun, have a nice day.

    Github: repo
Working...