From 7a5f42c3bb415b5c54c91563c2c94ebfcb208321 Mon Sep 17 00:00:00 2001 From: Keegan van der Laag Date: Thu, 5 Jul 2018 16:05:17 -0700 Subject: [PATCH 1/2] Match style in contains_shit Modifies contains_shit to match the style of doesnt_contain_shit. --- wtf/wtf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wtf/wtf.h b/wtf/wtf.h index e0204aa..8b79df7 100644 --- a/wtf/wtf.h +++ b/wtf/wtf.h @@ -3,8 +3,8 @@ #include #define sucks ==nullptr -#define does_not_suck !=nullptr -#define contains_shit(X) !(X).empty() +#define does_not_suck != nullptr +#define contains_shit size > 0 #define doesnt_contain_shit empty() #define then_fuck_it exit(1); #define fuck_this_i_am_out return 0 From f7dfd233802371fc30791fcbc719876f618dcc3b Mon Sep 17 00:00:00 2001 From: Keegan van der Laag Date: Thu, 5 Jul 2018 16:08:39 -0700 Subject: [PATCH 2/2] Don't fuck up syntax size should be size() since it's a function, idiot --- wtf/wtf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtf/wtf.h b/wtf/wtf.h index 8b79df7..c1e44fa 100644 --- a/wtf/wtf.h +++ b/wtf/wtf.h @@ -4,7 +4,7 @@ #define sucks ==nullptr #define does_not_suck != nullptr -#define contains_shit size > 0 +#define contains_shit size() > 0 #define doesnt_contain_shit empty() #define then_fuck_it exit(1); #define fuck_this_i_am_out return 0