Skip to content

Commit

Permalink
Load terralist properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jan 29, 2020
1 parent c4ca81c commit 2ee2bb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/terra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ee2bb4

Please sign in to comment.