[PATCH v4 1/1] Initial support for LuaJIT scripting

Dmitry V. Levin ldv at altlinux.org
Mon Jun 26 18:02:24 UTC 2017


On Fri, Jun 23, 2017 at 06:05:34PM +0300, Victor Krapivensky wrote:
[...]
> --- /dev/null
> +++ b/ffi.h
> @@ -0,0 +1,18 @@
> +#ifndef STRACE_FFI_H
> +#define STRACE_FFI_H
> +
> +#define FFI_STRINGIFY(...) #__VA_ARGS__
[...]
> --- /dev/null
> +++ b/luajit_lib.h
> @@ -0,0 +1,224 @@
> +#define STRINGIFY(...) #__VA_ARGS__
> +#define STRVAL(...)    STRINGIFY(__VA_ARGS__)
[...]
> --- a/mpers_type.h
> +++ b/mpers_type.h
> @@ -31,8 +31,8 @@
>  #define STRACE_MPERS_TYPE_H
>  
>  #ifdef IN_MPERS
> -# define STRINGIFY(a) #a
> -# define DEF_MPERS_TYPE(args) STRINGIFY(args.h)
> +# define MPERS_STRINGIFY(a) #a

The patch renames one stringify macro and introduces two more temporary
stringify macros.  If this doesn't signal that we need a strace-wide
stringify macro, then I don't know what does.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170626/87f44f6d/attachment.bin>


More information about the Strace-devel mailing list