Commit 9229e6e0 authored by Niels Möller's avatar Niels Möller
Browse files

* src/command.h (COMMAND_CALL): Generate a compile error if the

first argument is not an lvalue.

Rev: src/command.h:1.49
parent b33b52b2
......@@ -66,7 +66,7 @@
#define COMMAND_CALL(f, a, c, e) \
((f)->call((f), (struct lsh_object *) (a), (c), (e)))
((void)&(f), ((f)->call((f), (struct lsh_object *) (a), (c), (e))))
#define COMMAND_RETURN(r, v) ((r)->c((r), (struct lsh_object *) (v)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment