File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -695,6 +695,9 @@ map_op[".arch_1"] = function(params)
695
695
if not params then return " name" end
696
696
local err = loadarch (params [1 ])
697
697
if err then wfatal (err ) end
698
+ wline (format (" #if DASM_VERSION != %d" , _info .vernum ))
699
+ wline (' #error "Version mismatch between DynASM and included encoding engine"' )
700
+ wline (" #endif" )
698
701
end
699
702
700
703
-- Dummy .arch pseudo-opcode to improve the error report.
@@ -877,13 +880,9 @@ local function dasmhead(out)
877
880
** DO NOT EDIT! The original file is in "%s".
878
881
*/
879
882
880
- #if DASM_VERSION != %d
881
- #error "Version mismatch between DynASM and included encoding engine"
882
- #endif
883
-
884
883
]] , _info .url ,
885
884
_info .version , g_arch ._info .arch , g_arch ._info .version ,
886
- g_fname , _info . vernum ))
885
+ g_fname ))
887
886
end
888
887
889
888
-- Read input file.
You can’t perform that action at this time.
0 commit comments