2 * vim:ts=4:sw=4:expandtab
4 * i3 - an improved dynamic tiling window manager
5 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
14 * Returns true if this version of i3 is a debug build (anything which is not a
15 * release version), based on the git version number.
18 bool is_debug_build() {
19 /* i3_version contains either something like this:
20 * "4.0.2 (2011-11-11, branch "release")".
21 * or: "4.0.2-123-gCOFFEEBABE (2011-11-11, branch "next")".
23 * So we check for the offset of the first opening round bracket to
24 * determine whether this is a git version or a release version. */
25 return ((strchr(I3_VERSION, '(') - I3_VERSION) > 10);