This commit is contained in:
2014-12-26 10:23:59 +01:00
parent a18e9d38a1
commit 90042d221d
5 changed files with 68 additions and 8 deletions
-3
View File
@@ -20,6 +20,3 @@
// Do until condition is met
#define until(what) while(!(what))
// Because why the hell not
#define whilst(what) while((what))
+29
View File
@@ -0,0 +1,29 @@
#pragma once
/**
Ye Olde Control Structures
*/
#include "loops.h"
#define whilst(what) while((what))
#define when(what) if((what))
#define otherwise else
#define commence {
#define then {
#define cease }
#define choose(what) switch((what))
#define option case
#define shatter break
#define replay continue
#define equals ==
#define is ==
#define be =
#define over >
#define above >
#define under <
#define below <
#define let /**/
#define raise(what) (what)++
#define number int