C doesn't have import. Perhaps you meant: #include "cJSON.h"
Ah, my bad.
#define import #include
import "cJSON.h"
In fact, I even made it into a reusable library!
#include "import.h"
import "cJSON.h"
Edit: It is with great sadness, and a heavy heart, that I report the following news: C doesn't let you do this. (Genuinely surprised, considering everything else it lets you do!)
even if that was valid syntax (its not), that is not the same thing at all. #include is just a "dumb" macro, that literally just dumps the file contents in that spot, so have fun figuring out where an identifier came from in the global scope!
>have fun figuring out where an identifier came from in the global scope!
grep?
grep where? First you need to find all include paths..
gcc -E
ah yes, who needs a proper module system when you have... grep. LOL sad.