#define ll long long
Sometimes Geany syntax highlight ll
automatically for me and sometimes it just didn't work at all. I tried close and reopen several times and sometimes it works, sometimes it doesn't.
Can anybody tell me the reason for this weird behavior?
Note: I'm using Mac 10.11.6 and Geany 1.36 (if it helps).
You should use
typedef
for defining types.The syntax using
ll = long long;
is more modern.For a simple type definition it does exactly the same as
typedef long long ll;