mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-26 06:32:07 -04:00

If there are several uses of the compile_resource script it will have several definition of getResource function. So, define a custum getResource function per resources "pack" and add a define to have a nice API. A developer must take care of not include two generated .h in the same compilation unit as there will be a redefine error. The best way to avoid this is to always include the generated .h in the c(pp) file and never in a header. If a compilation unit need to use two pack at the same time, we have to undef 'getResource' and use the real getResource_* methods.
Description
Languages
C++
76.2%
JavaScript
16.9%
CSS
2.1%
HTML
1.9%
Python
1.6%
Other
1.2%