Posted By: krial057
#include caching - 12/26/15 01:28
Today I foudn something new in lite-c. Apparently, multiple #inlcude's to the same file get cached in lite-c:
Example:
print.c file content:
main.c file content:
"test" will only get printed once in this scnario.
However changing the code to the following:
"test" will get printed twice.
That's all I wanted to say... I know a lot about all the different things lite-c does, but I never knew about this one. Have a nice day!
Example:
print.c file content:
Php Code:
printf("test");
main.c file content:
Php Code:
function main() { #include "print.c" #include "print.c" }
"test" will only get printed once in this scnario.
However changing the code to the following:
Php Code:
function main() { #include "print.c" #include "./print.c" }
"test" will get printed twice.
That's all I wanted to say... I know a lot about all the different things lite-c does, but I never knew about this one. Have a nice day!