From cbfc1e7778e1224566a9fbf268a5f106c4ecf0cc Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Wed, 15 Oct 2025 20:46:05 +0200 Subject: [PATCH] Add missing includes to README example --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index edfada0..3562e97 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,9 @@ The API is quite involved as it tries not to take resource ownership from the ca To compile a script, you need to create a `WL_Compiler` object and add the source file to it ```c +#include +#include "wl.h" + int main(void) { WL_String source = WL_STR("

Hello, world!

"); @@ -114,6 +117,9 @@ If the initial script includes other files, the `wl_compiler_add` function will Once a bytecode program has been obtained, this is how you set up the virtual machine to run it: ```c +#include +#include "wl.h" + int main(void) { WL_Program program;