diff options
author | Mike Pall <mike> | 2009-12-15 04:29:22 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-15 04:29:22 +0100 |
commit | 31f0074c5e74a317525de249a8d51428f0847e21 (patch) | |
tree | a08a9156f333d28cfe6b2666bc27c8da1717b83a | |
parent | b2b8577a93f325dad667509b9a81931a12ff8924 (diff) | |
download | luajit-31f0074c5e74a317525de249a8d51428f0847e21.tar.gz luajit-31f0074c5e74a317525de249a8d51428f0847e21.tar.bz2 luajit-31f0074c5e74a317525de249a8d51428f0847e21.zip |
Make DynASM conditionals available before .arch statement.
-rw-r--r-- | dynasm/dynasm.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dynasm/dynasm.lua b/dynasm/dynasm.lua index 20ff9cf5..3fd344da 100644 --- a/dynasm/dynasm.lua +++ b/dynasm/dynasm.lua | |||
@@ -370,8 +370,12 @@ map_coreop[".include_1"] = function(params) | |||
370 | if fatal then wfatal("in include file") end | 370 | if fatal then wfatal("in include file") end |
371 | end | 371 | end |
372 | 372 | ||
373 | -- Make .include initially available, too. | 373 | -- Make .include and conditionals initially available, too. |
374 | map_op[".include_1"] = map_coreop[".include_1"] | 374 | map_op[".include_1"] = map_coreop[".include_1"] |
375 | map_op[".if_1"] = map_coreop[".if_1"] | ||
376 | map_op[".elif_1"] = map_coreop[".elif_1"] | ||
377 | map_op[".else_0"] = map_coreop[".else_0"] | ||
378 | map_op[".endif_0"] = map_coreop[".endif_0"] | ||
375 | 379 | ||
376 | ------------------------------------------------------------------------------ | 380 | ------------------------------------------------------------------------------ |
377 | 381 | ||