Re: Adding assembler code to Lua programs

  • From: Peter Cawley <corsix@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 5 Mar 2014 17:16:55 +0000

On Wed, Mar 5, 2014 at 4:35 PM, Luke Gorrie <luke@xxxxxxxx> wrote:
> I made one tiny change to move the version check to the bottom of the
> file -- this made it possible to generate a .c file with dynasm
> instead of a .h, which is slightly more convenient for me.

Alternatively, one could emit the version check at the point in the
file where ".arch" occurs, which keeps the check before all other
DynASM stuff, but means you're fine if you put #includes above the
".arch".

Other related posts: