Last active
December 20, 2015 17:59
-
-
Save liuyix/6172274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define LOGE(fmt,args...) fprintf(stderr, fmt, ##args) | |
| #define LOGD(fmt,args...) fprintf(stderr, fmt, ##args) | |
| #define LOGW(fmt,args...) fprintf(stderr, fmt, ##args) | |
| #include <errno.h> | |
| #include <string.h> | |
| #define PLOGE(fmt,args...) LOGE(fmt " failed with %d: %s", ##args, errno, strerror(errno)) | |
| #define PLOGEV(fmt,err,args...) LOGE(fmt " failed with %d: %s", ##args, err, strerror(err)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include "c_native_log.h" | |
| int main(int argc, char *argv[]) { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment