42School / norminette

Official 42 norminette
MIT License
956 stars 140 forks source link

typeof() macro #443

Open yumamur opened 1 year ago

yumamur commented 1 year ago

I assume this definition violates some rules

void    func(int x)
{
    typeof(x) k = x;
    if (k)
        ++k;
    else
        --k;
}

and also this

void    func(int x)
{
    int a;

    typeof(a) k = x;
    if (k)
    {
        typeof(x) b = 10;
        --b;
        ++k;
    }
    else
        --k;
}