diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/host/genversion.lua | 2 | ||||
| -rw-r--r-- | src/luajit_rolling.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/host/genversion.lua b/src/host/genversion.lua index 28f7206c..f0925160 100644 --- a/src/host/genversion.lua +++ b/src/host/genversion.lua | |||
| @@ -29,7 +29,7 @@ local function file_write_mod(file, data) | |||
| 29 | assert(fp:close()) | 29 | assert(fp:close()) |
| 30 | end | 30 | end |
| 31 | 31 | ||
| 32 | local text = file_read(FILE_ROLLING_H) | 32 | local text = file_read(FILE_ROLLING_H):gsub("#error.-\n", "") |
| 33 | local relver = file_read(FILE_RELVER_TXT):match("(%d+)") | 33 | local relver = file_read(FILE_RELVER_TXT):match("(%d+)") |
| 34 | 34 | ||
| 35 | if relver then | 35 | if relver then |
diff --git a/src/luajit_rolling.h b/src/luajit_rolling.h index 27368836..e7ff2c23 100644 --- a/src/luajit_rolling.h +++ b/src/luajit_rolling.h | |||
| @@ -67,4 +67,5 @@ LUA_API int luaJIT_setmode(lua_State *L, int idx, int mode); | |||
| 67 | /* Enforce (dynamic) linker error for version mismatches. Call from main. */ | 67 | /* Enforce (dynamic) linker error for version mismatches. Call from main. */ |
| 68 | LUA_API void LUAJIT_VERSION_SYM(void); | 68 | LUA_API void LUAJIT_VERSION_SYM(void); |
| 69 | 69 | ||
| 70 | #error "DO NOT USE luajit_rolling.h -- only include build-generated luajit.h" | ||
| 70 | #endif | 71 | #endif |
