diff options
| -rw-r--r-- | content/notes/2025-04-08-embedding-game-assets-within-your-binary.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/notes/2025-04-08-embedding-game-assets-within-your-binary.md b/content/notes/2025-04-08-embedding-game-assets-within-your-binary.md index 65f5813..8200f14 100644 --- a/content/notes/2025-04-08-embedding-game-assets-within-your-binary.md +++ b/content/notes/2025-04-08-embedding-game-assets-within-your-binary.md | |||
| @@ -226,12 +226,12 @@ Below is a quick example how to use this new directive. | |||
| 226 | #include <stdio.h> | 226 | #include <stdio.h> |
| 227 | 227 | ||
| 228 | const uint8_t image_data[] = { | 228 | const uint8_t image_data[] = { |
| 229 | #embed "image.png" | 229 | #embed "image.png" |
| 230 | }; | 230 | }; |
| 231 | 231 | ||
| 232 | int main(void) { | 232 | int main(void) { |
| 233 | printf("Image size: %d bytes\n", sizeof(image_data)); | 233 | printf("Image size: %d bytes\n", sizeof(image_data)); |
| 234 | return 0; | 234 | return 0; |
| 235 | } | 235 | } |
| 236 | ``` | 236 | ``` |
| 237 | 237 | ||
