summaryrefslogtreecommitdiff
path: root/tests/projects/other/bin2c/src/main.c
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-05 00:35:38 +0800
committerruki <[email protected]>2021-08-05 00:35:38 +0800
commit376aaf2b9432b2da255c4aaabcbc8c84d2372c4c (patch)
treedfc6c82445dd54b18e0f664892af72001c7c5cc6 /tests/projects/other/bin2c/src/main.c
parentb700ce5f896f1a3edfadafb4c188d1f147ea4ac7 (diff)
improve bin2c rule
Diffstat (limited to 'tests/projects/other/bin2c/src/main.c')
-rw-r--r--tests/projects/other/bin2c/src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/projects/other/bin2c/src/main.c b/tests/projects/other/bin2c/src/main.c
index 650531dcb..d634a917b 100644
--- a/tests/projects/other/bin2c/src/main.c
+++ b/tests/projects/other/bin2c/src/main.c
@@ -4,8 +4,13 @@ static unsigned char g_bin_data[] = {
#include "data.bin.h"
};
+static unsigned char g_png_data[] = {
+ #include "image.png.h"
+};
+
int main(int argc, char** argv)
{
- printf("bin2c: %s\n", g_bin_data);
+ printf("data.bin: %s, size: %d\n", g_bin_data, sizeof(g_bin_data));
+ printf("image.png: %s, size: %d\n", g_png_data, sizeof(g_png_data));
return 0;
}