-
-
Save bsmt/b63d8c5836bf59f63745 to your computer and use it in GitHub Desktop.
Probably the easiest but worst way to detect lldb.
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 <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
char *underscore = getenv("_"); | |
if (!strcmp(underscore, "/usr/bin/lldb")) | |
{ | |
printf("lldb detected.\n"); | |
} | |
else | |
{ | |
printf("all good.\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment