Re: Missing parenthesis in lauxlib.h
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Missing parenthesis in lauxlib.h
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2021年10月15日 07:08:21 -0300
> I don't understand the interest of those parentheses surrounding the declared names
It is meant to allow redefinitions of API names via macros. Run cc -E
on the code below:
#define f(x) g(x,10)
void (f)(int a);
void f(int a);
This allows tools like my ctrace and others to exist.