From 6444a5f5dbc9914906da9827d0354ba0030848b2 Mon Sep 17 00:00:00 2001 From: minirop Date: Thu, 19 Oct 2017 21:17:40 +0200 Subject: [PATCH] missing language specifier and variable declaration --- doc/site/embedding/storing-c-data.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/site/embedding/storing-c-data.markdown b/doc/site/embedding/storing-c-data.markdown index 64148526..9c1e630d 100644 --- a/doc/site/embedding/storing-c-data.markdown +++ b/doc/site/embedding/storing-c-data.markdown @@ -347,8 +347,10 @@ they already closed. If not, we call `fwrite()` to write to the file. The other method is `close()` to let them explicitly close the file: + :::c void fileClose(WrenVM* vm) { + FILE** file = (FILE**)wrenGetSlotForeign(vm, 0); closeFile(file); }