From 673fc3a6fa0affa8a0628b08dc338aa9049c42b2 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 23 Apr 2016 17:16:56 -0400 Subject: [PATCH] loadfilex doesn't exist... nice. --- docs/source/index.rst | 2 +- docs/source/tutorial/all-the-things.rst | 4 ++-- docs/source/tutorial/tutorial-top.rst | 2 +- sol/state_view.hpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index 08eb4289..be410bda 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -21,8 +21,8 @@ get going: :maxdepth: 1 :name: mastertoc - tutorial/tutorial-top tutorial/all-the-things + tutorial/tutorial-top api/api-top features benchmarks diff --git a/docs/source/tutorial/all-the-things.rst b/docs/source/tutorial/all-the-things.rst index 85551dd1..e8634e80 100644 --- a/docs/source/tutorial/all-the-things.rst +++ b/docs/source/tutorial/all-the-things.rst @@ -1,5 +1,5 @@ -quick 'n' dirty - all the things -================================ +tutorial: quick 'n' dirty +========================= These are all the things. Use your browser's search to find something that might help. diff --git a/docs/source/tutorial/tutorial-top.rst b/docs/source/tutorial/tutorial-top.rst index f859e0fa..5b04e66a 100644 --- a/docs/source/tutorial/tutorial-top.rst +++ b/docs/source/tutorial/tutorial-top.rst @@ -1,4 +1,4 @@ -Tutorial +tutorial ======== Take some time to learn the framework with thse tutorials. But, if you need to get going FAST, try using the :doc:`quick 'n' dirty` approach and your browser's / editors search function. diff --git a/sol/state_view.hpp b/sol/state_view.hpp index a052f439..730727cc 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -164,7 +164,7 @@ public: } stack_proxy load_file(const std::string& filename) { - luaL_loadfilex(L, filename.c_str(), nullptr); + luaL_loadfile(L, filename.c_str()); return stack_proxy(L, -1); }