qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] define constant in .risu file


From: Peter Maydell
Subject: Re: [Qemu-devel] define constant in .risu file
Date: Tue, 18 Apr 2017 10:49:14 +0100

On 18 April 2017 at 05:20, G 3 <address@hidden> wrote:
> Is there a way to define a constant in a .risu file? Something like this:
>
> my $upper_imm_limit = 500;

No - the risu file is just a bunch of patterns, with a
few fragments of executable code mixed in.

Currently constants defined in the perl source will
be visible to the perl fragments in the risu file,
but that's pretty ugly and one day I'll make it
a requirement that the perl explicitly exports the
functions/constants the risu fragments should see.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]