From 2ee2bb4eba6df92370ec3354011f6629d083a6fa Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Wed, 29 Jan 2020 11:30:11 -0800 Subject: [PATCH] Load terralist properly. --- src/terra.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terra.cpp b/src/terra.cpp index b22ffe7a..945f2859 100644 --- a/src/terra.cpp +++ b/src/terra.cpp @@ -156,6 +156,7 @@ int terra_lualoadstring(lua_State *L) { #include "terralib.h" #include "strict.h" #include "asdl.h" +#include "terralist.h" int terra_loadandrunbytecodes(lua_State *L, const unsigned char *bytecodes, size_t size, const char *name) { @@ -447,6 +448,8 @@ int terra_initwithoptions(lua_State *L, terra_Options *options) { err = terra_loadandrunbytecodes(T->L, (const unsigned char *)luaJIT_BC_strict, luaJIT_BC_strict_SIZE, "strict.lua") || + terra_loadandrunbytecodes(T->L, (const unsigned char *)luaJIT_BC_terralist, + luaJIT_BC_terralist_SIZE, "terralist.lua") || terra_loadandrunbytecodes(T->L, (const unsigned char *)luaJIT_BC_asdl, luaJIT_BC_asdl_SIZE, "asdl.lua") #ifndef TERRA_EXTERNAL_TERRALIB