468,484 Members | 1,581 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Share your developer knowledge by writing an article on Bytes.

Low-invasive C language library

1
Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2. #include "mln_log.h"
  3. #define MLN_SIMPLE_INIT //Necessary macro for low invasive feature
  4. #include "mln_core.h"
  5.  
  6. int main(void)
  7. {
  8.   mln_simple_init = 1; //just assign a value to it, whatever its value is
  9.   mln_log(debug, "aaa\n"); //output log. you can use other components here
  10.   return 0;
  11. }
  12.  
The global loading of the C language library is completed implicitly, almost non-invasive.

Just for fun, have a nice day.

Github: repo
May 1 '21 #1
0 997

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Borcis | last post: by
134 posts views Thread by evolnet.regular | last post: by
4 posts views Thread by puzzlecracker | last post: by
20 posts views Thread by Frank-O | last post: by
13 posts views Thread by VijayJaiswal | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.