src/basics.h

changeset 1015
92c6ec099075
parent 1014
f0a8ecb6a357
child 1017
fc1c13db9618
--- a/src/basics.h	Fri Jan 01 23:41:55 2016 +0200
+++ b/src/basics.h	Sat Feb 13 04:06:49 2016 +0200
@@ -234,3 +234,8 @@
 {
 	return false;
 }
+
+inline void toggle (bool& a)
+{
+	a = not a;
+}

mercurial