| 34 | |
| 35 | #ifndef __FILE_NAME__ |
| 36 | const char *_getFileName(const char *path) { |
| 37 | const char *ptr = strrchr(path, '/'); |
| 38 | if (!ptr) { |
| 39 | ptr = strrchr(path, '\\'); |
| 40 | } |
| 41 | if (ptr) { |
| 42 | return ptr + 1; |
| 43 | } else { |
| 44 | return path; |
| 45 | } |
| 46 | } |
| 47 | #endif |
| 48 | |
| 49 | mmkv::MMKVHandler *g_handler = nullptr; |
nothing calls this directly
no outgoing calls
no test coverage detected